mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 15:22:57 +00:00
#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:
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() {
|
||||
|
||||
Reference in new issue
Block a user