#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

@@ -32,6 +32,7 @@ import forestry.core.gui.widgets.Widget;
import forestry.core.proxy.Proxies;
import forestry.core.utils.StringUtil;
import forestry.mail.items.ItemLetter.LetterInventory;
import forestry.mail.network.PacketRequestLetterInfo;
public class GuiLetter extends GuiForestry<ContainerLetter, LetterInventory> {
@@ -271,7 +272,8 @@ public class GuiLetter extends GuiForestry<ContainerLetter, LetterInventory> {
return;
}
container.setRecipient(recipientName, type);
PacketRequestLetterInfo packet = new PacketRequestLetterInfo(recipientName, type);
Proxies.net.sendToServer(packet);
}
private void setText() {