slots have different color on no controller + shift clicking in grid

This commit is contained in:
Raoul Van den Berge
2015-12-12 15:56:16 +01:00
parent 003e87bd4d
commit d518eb4f31
5 changed files with 72 additions and 43 deletions

View File

@@ -34,9 +34,9 @@ public class GuiHandler implements IGuiHandler {
switch (ID) {
case SC.GUI.CONTROLLER:
return new GuiController(getContainer(ID, player), (TileController) tile);
return new GuiController((ContainerController) getContainer(ID, player), (TileController) tile);
case SC.GUI.GRID:
return new GuiGrid(getContainer(ID, player), (TileGrid) tile);
return new GuiGrid((ContainerGrid) getContainer(ID, player), (TileGrid) tile);
default:
return null;
}