mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 07:35:47 +00:00
Add checking to make sure client and server can't open different GUIs
This commit is contained in:
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"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user