OSDN Git Service

バグ特定ができないのでコミットしとく
[chemicraft/chemicraft.git] / common / chemicraft / CommonProxy.java
index f827ab2..a17cad0 100644 (file)
@@ -7,27 +7,26 @@ import cpw.mods.fml.common.network.IGuiHandler;
 
 public class CommonProxy implements IGuiHandler {
 
-    public void registerRenderInformation() {
-    }
-
+       public void registerRenderInformation() {
+       }
 
-    @Override
-    public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
-       if (!world.blockExists(x, y, z))
-           return null;
 
-       TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
+       @Override
+       public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
+               if (!world.blockExists(x, y, z))
+                       return null;
 
-       if (tileEntity instanceof TileEntityScienceCraftingTable) {
-           return new ContainerScienceCraftingTable(player.inventory, (TileEntityScienceCraftingTable) tileEntity);
+               TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
+               if (tileEntity instanceof TileEntityScienceCraftingTable) {
+                       return new ContainerScienceCraftingTable(player, (TileEntityScienceCraftingTable) tileEntity);
+               }
+               return null;
        }
-       return null;
-    }
 
 
-    @Override
-    public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
-       return null;
-    }
+       @Override
+       public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
+               return null;
+       }
 
 }
\ No newline at end of file