Skip to content

Commit

Permalink
fix(tile): remove useless meta nbt
Browse files Browse the repository at this point in the history
  • Loading branch information
leagris committed Mar 3, 2020
1 parent 87ccfb3 commit b740837
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/binnie/core/block/TileEntityMetadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,8 @@ public static TileEntityMetadata getTile(IBlockAccess world, int x, int y, int z
}

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((damage < 16387) ? damage : 16387);
item.setTagCompound(tag);
item.setItemDamage(Math.min(damage, 16387));
return item;
}

Expand Down

0 comments on commit b740837

Please sign in to comment.