#561 Add "gui open" and "active" packet updates

This commit is contained in:
mezz committed 2015-05-31 03:13:23 -07:00
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;