mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-10-26 14:24:20 +00:00
Fix ExtraTrees worker
This commit is contained in:
1 parent
68fff7161a
commit
bc4ec455e5
1 file changed
+4
@@ -74,8 +74,12 @@ public class TileEntityMetadata extends TileEntity {
|
||||
}
|
||||
|
||||
public static ItemStack getItemStack(Block block, int damage) {
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
tag.setInteger("meta", damage);
|
||||
|
||||
ItemStack item = new ItemStack(block, 1, 0);
|
||||
item.setItemDamage(Math.min(damage, 16387));
|
||||
item.setTagCompound(tag);
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user