Fix ExtraTrees worker

This commit is contained in:
DianeXD authored and GitHub committed 2022-07-03 10:34:56 +08:00
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;
}