Merge branch 'GTNewHorizons:master' into master

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