#561 refactor networking

Use more DataStreams and less NBT
Add packet for error states changing
Reduce network use by Clockwork Engine
This commit is contained in:
mezz committed 2015-05-29 22:31:38 -07:00
1 parent ce00a33593
commit 9fccfd1198
115 files changed
+1850 -1855

No files matched your search

@@ -30,7 +30,7 @@ import forestry.api.mail.IPostalCarrier;
import forestry.api.mail.ITradeStation;
import forestry.api.mail.PostManager;
import forestry.core.config.ForestryItem;
import forestry.core.network.PacketIds;
import forestry.core.network.PacketId;
import forestry.core.proxy.Proxies;
import forestry.mail.items.ItemLetter;
import forestry.mail.network.PacketPOBoxInfo;
@@ -75,7 +75,7 @@ public class PostRegistry implements IPostRegistry {
EntityPlayer player = Proxies.common.getPlayer(world, address.getPlayerProfile());
if (player != null) {
Proxies.net.sendToPlayer(new PacketPOBoxInfo(PacketIds.POBOX_INFO, pobox.getPOBoxInfo()), player);
Proxies.net.sendToPlayer(new PacketPOBoxInfo(PacketId.POBOX_INFO, pobox.getPOBoxInfo()), player);
}
}