Updated mappings

This commit is contained in:
drcrazy 2019-02-22 14:36:13 +03:00
parent b864d551dd
commit 647b126c98
8 changed files with 18 additions and 24 deletions

View file

@ -92,7 +92,7 @@ public class StackToolTipEvent {
&& block.getRegistryName().getNamespace().contains("techreborn")) {
TileEntity tile = block.createTileEntity(block.getDefaultState(), Minecraft.getInstance().world);
boolean hasData = false;
if (event.getItemStack().hasTag() && event.getItemStack().getTag().hasKey("tile_data")) {
if (event.getItemStack().hasTag() && event.getItemStack().getTag().contains("tile_data")) {
NBTTagCompound tileData = event.getItemStack().getTag().getCompound("tile_data");
tile.read(tileData);
hasData = true;