#935 Machines can be accessed and modified

This commit is contained in:
CrazyPants committed 2014-09-02 19:50:15 +08:00
1 parent 74fde786c0
commit c5333a72d4
10 files changed
+55 -9

No files matched your search

@@ -277,13 +277,15 @@ public class BlockHyperCube extends BlockEio implements IGuiHandler, IResourceTo
if(!(te instanceof TileHyperCube)) {
return false;
}
entityPlayer.openGui(EnderIO.instance, GuiHandler.GUI_ID_HYPER_CUBE, world, x, y, z);
if(!world.isRemote) {
entityPlayer.openGui(EnderIO.instance, GuiHandler.GUI_ID_HYPER_CUBE, world, x, y, z);
}
return true;
}
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
return null;
return new ContainerHyperCube();
}
@Override