mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Close #699 Add Beehouse Minecart
This commit is contained in:
1 parent
5b53c3f153
commit
eb0a55d91c
91 files changed
+1677
-479
No files matched your search
@@ -17,6 +17,7 @@ import forestry.core.GuiHandlerBase;
|
||||
import forestry.core.network.GuiId;
|
||||
import forestry.core.network.PacketSocketUpdate;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.core.tiles.TileUtil;
|
||||
import forestry.farming.gui.ContainerFarm;
|
||||
import forestry.farming.gui.GuiFarm;
|
||||
import forestry.farming.tiles.TileFarm;
|
||||
@@ -32,7 +33,7 @@ public class GuiHandlerFarming extends GuiHandlerBase {
|
||||
|
||||
switch (GuiId.values()[id]) {
|
||||
case MultiFarmGUI:
|
||||
TileFarm tile = getTile(world, x, y, z, player, TileFarm.class);
|
||||
TileFarm tile = TileUtil.getTile(world, x, y, z, TileFarm.class);
|
||||
Proxies.net.sendToPlayer(new PacketSocketUpdate(tile), player);
|
||||
return new ContainerFarm(player.inventory, tile);
|
||||
default:
|
||||
@@ -49,7 +50,7 @@ public class GuiHandlerFarming extends GuiHandlerBase {
|
||||
|
||||
switch (GuiId.values()[id]) {
|
||||
case MultiFarmGUI:
|
||||
return new GuiFarm(player, getTile(world, x, y, z, player, TileFarm.class));
|
||||
return new GuiFarm(player, TileUtil.getTile(world, x, y, z, TileFarm.class));
|
||||
default:
|
||||
return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user