Minor Cleanup

This commit is contained in:
mezz committed 2015-01-19 11:34:38 -08:00
1 parent dc1449855e
commit 8eb366997d
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -122,7 +122,7 @@ public class Letter implements ILetter, INBTTagable {
@Override
public void invalidatePostage() {
for (int i = SLOT_POSTAGE_1; i < SLOT_POSTAGE_1 + 4; i++)
for (int i = SLOT_POSTAGE_1; i < SLOT_POSTAGE_1 + SLOT_POSTAGE_COUNT; i++)
inventory.setInventorySlotContents(i, null);
}
@@ -193,8 +193,7 @@ public class ItemLetter extends ItemInventoried {
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) {
if (Proxies.common.isSimulating(world))
if (itemstack.stackSize == 1) {
entityplayer.openGui(ForestryAPI.instance, GuiId.LetterGUI.ordinal(), world, (int) entityplayer.posX, (int) entityplayer.posY,
(int) entityplayer.posZ);
entityplayer.openGui(ForestryAPI.instance, GuiId.LetterGUI.ordinal(), world, (int) entityplayer.posX, (int) entityplayer.posY, (int) entityplayer.posZ);
} else {
entityplayer.addChatMessage(new ChatComponentTranslation("for.chat.mail.wrongstacksize"));
}