mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix #701 Improve BeekeepingLogic and network performance.
Improve rendering performance of saplings and butterflies too
This commit is contained in:
1 parent
d61096e1a9
commit
1249ccf983
34 files changed
+404
-217
No files matched your search
@@ -33,7 +33,7 @@ public class GuiHandlerFarming extends GuiHandlerBase {
|
||||
|
||||
switch (GuiId.values()[id]) {
|
||||
case MultiFarmGUI:
|
||||
TileFarmPlain tile = getTileForestry(world, x, y, z, TileFarmPlain.class);
|
||||
TileFarmPlain tile = getTileForestry(world, x, y, z, player, 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, getTileForestry(world, x, y, z, TileFarmPlain.class));
|
||||
return new GuiFarm(player, getTileForestry(world, x, y, z, player, TileFarmPlain.class));
|
||||
default:
|
||||
return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user