mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 06:14:46 +00:00
Fix #641 Item Inventory Dupe Bug. Refactor Inventories
This commit is contained in:
1 parent
6b824f47cd
commit
93a6c77eba
82 files changed
+719
-1258
No files matched your search
@@ -15,8 +15,10 @@ import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.RenderTickEvent;
|
||||
|
||||
import forestry.core.network.ForestryPacket;
|
||||
import forestry.core.network.PacketIds;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.mail.gui.GuiMailboxInfo;
|
||||
import forestry.plugins.PluginMail;
|
||||
|
||||
public class TickHandlerMailClient {
|
||||
public TickHandlerMailClient() {
|
||||
@@ -29,10 +31,10 @@ public class TickHandlerMailClient {
|
||||
return;
|
||||
}
|
||||
|
||||
if (GuiMailboxInfo.instance != null) {
|
||||
if (GuiMailboxInfo.instance.hasPOBoxInfo()) {
|
||||
GuiMailboxInfo.instance.render(0, 0);
|
||||
} else {
|
||||
PluginMail.proxy.resetMailboxInfo();
|
||||
Proxies.net.sendToServer(new ForestryPacket(PacketIds.POBOX_INFO_REQUEST));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user