mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 03:59:45 +00:00
#561 Add "gui open" and "active" packet updates
This commit is contained in:
1 parent
0655ea235a
commit
68315ee614
23 files changed
+377
-142
No files matched your search
@@ -33,7 +33,7 @@ public class GuiHandlerFarming extends GuiHandlerBase {
|
||||
|
||||
switch (GuiId.values()[id]) {
|
||||
case MultiFarmGUI:
|
||||
TileFarmPlain tile = (TileFarmPlain) getTileForestry(world, x, y, z);
|
||||
TileFarmPlain tile = getTileForestry(world, x, y, z, TileFarmPlain.class);
|
||||
Proxies.net.sendToPlayer(new PacketSocketUpdate(PacketId.SOCKET_UPDATE, tile), player);
|
||||
return new ContainerFarm(player.inventory, tile);
|
||||
default:
|
||||
@@ -50,7 +50,7 @@ public class GuiHandlerFarming extends GuiHandlerBase {
|
||||
|
||||
switch (GuiId.values()[id]) {
|
||||
case MultiFarmGUI:
|
||||
return new GuiFarm(player, (TileFarmPlain) getTileForestry(world, x, y, z));
|
||||
return new GuiFarm(player, getTileForestry(world, x, y, z, TileFarmPlain.class));
|
||||
default:
|
||||
return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user