parent
d351f6455e
commit
1e0e23fe49
1 changed files with 22 additions and 18 deletions
|
@ -25,8 +25,10 @@ public class GuiHandler implements IGuiHandler {
|
|||
|
||||
TileGenericPipe pipe = (TileGenericPipe) tile;
|
||||
|
||||
switch (ID) {
|
||||
if (pipe.pipe == null)
|
||||
return null;
|
||||
|
||||
switch (ID) {
|
||||
case GuiIds.PIPE_DIAMOND:
|
||||
return new ContainerDiamondPipe(player.inventory, (PipeLogicDiamond)pipe.pipe.logic);
|
||||
|
||||
|
@ -49,8 +51,10 @@ public class GuiHandler implements IGuiHandler {
|
|||
|
||||
TileGenericPipe pipe = (TileGenericPipe) tile;
|
||||
|
||||
switch (ID) {
|
||||
if (pipe.pipe == null)
|
||||
return null;
|
||||
|
||||
switch (ID) {
|
||||
case GuiIds.PIPE_DIAMOND:
|
||||
return new GuiDiamondPipe(player.inventory, pipe);
|
||||
|
||||
|
|
Loading…
Reference in a new issue