nbt.removeTag("x");
nbt.removeTag("y");
nbt.removeTag("z");
blockTE.readFromNBT(nbt);
card.setMemoryCardContents(currentItem, getUnlocalizedName() + ".name", nbt);
player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsSaved")));
return true;
} else if (card.getSettingsName(currentItem).equals(getUnlocalizedName() + ".name") || card.getSettingsName(currentItem).equals("AppEng.GuiITooltip.Blank"))
{
blockTE.readFromNBT(card.getData(currentItem));
Packet description = blockTE.getDescriptionPacket();
if (description != null)
PacketDispatcher.sendPacketToAllPlayers(description);
player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.SettingsLoaded")));
return true;
} else
{
player.sendChatToPlayer(new ChatMessageComponent().addText(StatCollector.translateToLocal("ChatMsg.IncorrectDevice")));
return true;
}
}
}
if (world.getBlockTileEntity(x, y, z) == null || player.isSneaking())