mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +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
@@ -70,13 +70,13 @@ public class GuiHandlerMail extends GuiHandlerBase {
|
||||
}
|
||||
|
||||
case MailboxGUI:
|
||||
return new GuiMailbox(player.inventory, (MachineMailbox) getTileForestry(world, x, y, z));
|
||||
return new GuiMailbox(player.inventory, getTileForestry(world, x, y, z, MachineMailbox.class));
|
||||
case PhilatelistGUI:
|
||||
return new GuiPhilatelist(player.inventory, (MachinePhilatelist) getTileForestry(world, x, y, z));
|
||||
return new GuiPhilatelist(player.inventory, getTileForestry(world, x, y, z, MachinePhilatelist.class));
|
||||
case TraderGUI:
|
||||
return new GuiTrader(player.inventory, (MachineTrader) getTileForestry(world, x, y, z));
|
||||
return new GuiTrader(player.inventory, getTileForestry(world, x, y, z, MachineTrader.class));
|
||||
case TraderNameGUI:
|
||||
return new GuiTradeName(player.inventory, (MachineTrader) getTileForestry(world, x, y, z));
|
||||
return new GuiTradeName(player.inventory, getTileForestry(world, x, y, z, MachineTrader.class));
|
||||
default:
|
||||
return null;
|
||||
|
||||
@@ -116,13 +116,13 @@ public class GuiHandlerMail extends GuiHandlerBase {
|
||||
}
|
||||
|
||||
case MailboxGUI:
|
||||
return new ContainerMailbox(player.inventory, (MachineMailbox) getTileForestry(world, x, y, z));
|
||||
return new ContainerMailbox(player.inventory, getTileForestry(world, x, y, z, MachineMailbox.class));
|
||||
case PhilatelistGUI:
|
||||
return new ContainerPhilatelist(player.inventory, (MachinePhilatelist) getTileForestry(world, x, y, z));
|
||||
return new ContainerPhilatelist(player.inventory, getTileForestry(world, x, y, z, MachinePhilatelist.class));
|
||||
case TraderGUI:
|
||||
return new ContainerTrader(player.inventory, (MachineTrader) getTileForestry(world, x, y, z));
|
||||
return new ContainerTrader(player.inventory, getTileForestry(world, x, y, z, MachineTrader.class));
|
||||
case TraderNameGUI:
|
||||
return new ContainerTradeName(player.inventory, (MachineTrader) getTileForestry(world, x, y, z));
|
||||
return new ContainerTradeName(player.inventory, getTileForestry(world, x, y, z, MachineTrader.class));
|
||||
default:
|
||||
return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user