mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +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
@@ -15,7 +15,7 @@ import net.minecraft.world.World;
|
||||
|
||||
import forestry.core.GuiHandlerBase;
|
||||
import forestry.core.network.GuiId;
|
||||
import forestry.core.network.PacketIds;
|
||||
import forestry.core.network.PacketId;
|
||||
import forestry.core.network.PacketSocketUpdate;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.farming.gadgets.TileFarmPlain;
|
||||
@@ -34,7 +34,7 @@ public class GuiHandlerFarming extends GuiHandlerBase {
|
||||
switch (GuiId.values()[id]) {
|
||||
case MultiFarmGUI:
|
||||
TileFarmPlain tile = (TileFarmPlain) getTileForestry(world, x, y, z);
|
||||
Proxies.net.sendToPlayer(new PacketSocketUpdate(PacketIds.SOCKET_UPDATE, x, y, z, tile), player);
|
||||
Proxies.net.sendToPlayer(new PacketSocketUpdate(PacketId.SOCKET_UPDATE, tile), player);
|
||||
return new ContainerFarm(player.inventory, tile);
|
||||
default:
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user