Fix #701 Improve BeekeepingLogic and network performance.

Improve rendering performance of saplings and butterflies too
This commit is contained in:
mezz committed 2015-06-06 23:15:25 -07:00
1 parent d61096e1a9
commit 1249ccf983
34 files changed
+404 -217

No files matched your search

@@ -43,16 +43,16 @@ public class GuiHandlerEnergy extends GuiHandlerBase {
switch (GuiId.values()[id]) {
case EngineBronzeGUI:
return new GuiEngineBronze(player.inventory, getTileForestry(world, x, y, z, EngineBronze.class));
return new GuiEngineBronze(player.inventory, getTileForestry(world, x, y, z, player, EngineBronze.class));
case EngineCopperGUI:
return new GuiEngineCopper(player.inventory, getTileForestry(world, x, y, z, EngineCopper.class));
return new GuiEngineCopper(player.inventory, getTileForestry(world, x, y, z, player, EngineCopper.class));
case EngineTinGUI:
return new GuiEngineTin(player.inventory, getTileForestry(world, x, y, z, EngineTin.class));
return new GuiEngineTin(player.inventory, getTileForestry(world, x, y, z, player, EngineTin.class));
case GeneratorGUI:
return new GuiGenerator(player.inventory, getTileForestry(world, x, y, z, MachineGenerator.class));
return new GuiGenerator(player.inventory, getTileForestry(world, x, y, z, player, MachineGenerator.class));
default:
return null;
@@ -69,18 +69,18 @@ public class GuiHandlerEnergy extends GuiHandlerBase {
switch (GuiId.values()[id]) {
case EngineBronzeGUI:
return new ContainerEngineBronze(player.inventory, getTileForestry(world, x, y, z, EngineBronze.class));
return new ContainerEngineBronze(player.inventory, getTileForestry(world, x, y, z, player, EngineBronze.class));
case EngineCopperGUI:
return new ContainerEngineCopper(player.inventory, getTileForestry(world, x, y, z, EngineCopper.class));
return new ContainerEngineCopper(player.inventory, getTileForestry(world, x, y, z, player, EngineCopper.class));
case EngineTinGUI:
EngineTin tile = getTileForestry(world, x, y, z, EngineTin.class);
EngineTin tile = getTileForestry(world, x, y, z, player, EngineTin.class);
Proxies.net.sendToPlayer(new PacketSocketUpdate(PacketId.SOCKET_UPDATE, tile), player);
return new ContainerEngineTin(player.inventory, tile);
case GeneratorGUI:
return new ContainerGenerator(player.inventory, getTileForestry(world, x, y, z, MachineGenerator.class));
return new ContainerGenerator(player.inventory, getTileForestry(world, x, y, z, player, MachineGenerator.class));
default:
return null;