Add checking to make sure client and server can't open different GUIs

This commit is contained in:
mezz committed 2015-11-20 09:49:55 -08:00
1 parent 408a66bb40
commit 3c7856f264
39 files changed
+434 -236

No files matched your search

@@ -43,7 +43,7 @@ public class ItemLetter extends ItemWithGui {
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) {
if (!world.isRemote) {
if (itemstack.stackSize == 1) {
openGui(world, entityplayer);
openGui(entityplayer);
} else {
entityplayer.addChatMessage(new ChatComponentTranslation("for.chat.mail.wrongstacksize"));
}