mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-10-26 14:23:57 +00:00
Minor Cleanup
This commit is contained in:
1 parent
dc1449855e
commit
8eb366997d
2 files changed
+2
-3
No files matched your search
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user