mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 06:14:46 +00:00
Clean up network, clearly separate client and server packets
This commit is contained in:
1 parent
140643bec3
commit
614c13b4f3
90 files changed
+1326
-1056
No files matched your search
@@ -15,10 +15,9 @@ 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.PacketId;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.mail.gui.GuiMailboxInfo;
|
||||
import forestry.mail.network.PacketPOBoxInfoRequest;
|
||||
|
||||
public class TickHandlerMailClient {
|
||||
public TickHandlerMailClient() {
|
||||
@@ -34,7 +33,7 @@ public class TickHandlerMailClient {
|
||||
if (GuiMailboxInfo.instance.hasPOBoxInfo()) {
|
||||
GuiMailboxInfo.instance.render(0, 0);
|
||||
} else {
|
||||
Proxies.net.sendToServer(new ForestryPacket(PacketId.POBOX_INFO_REQUEST));
|
||||
Proxies.net.sendToServer(new PacketPOBoxInfoRequest());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user