Fixed potential Robit crashes

This commit is contained in:
aidancbrady committed 2017-04-29 12:39:25 -04:00
1 parent d93f0e383a
commit 313ae0112e
3 files changed
+38 -5

No files matched your search

@@ -457,6 +457,8 @@ public class CommonProxy implements IGuiProvider
{
return new ContainerNull();
}
return null;
case 15:
return new ContainerAdvancedElectricMachine(player.inventory, (TileEntityAdvancedElectricMachine)tileEntity);
case 16:
@@ -472,6 +474,8 @@ public class CommonProxy implements IGuiProvider
{
return new ContainerRobitMain(player.inventory, robit);
}
return null;
case 22:
robit = (EntityRobit)world.getEntityByID(pos.getX());
@@ -479,6 +483,8 @@ public class CommonProxy implements IGuiProvider
{
return new ContainerRobitCrafting(player.inventory, robit);
}
return null;
case 23:
robit = (EntityRobit)world.getEntityByID(pos.getX());
@@ -486,6 +492,8 @@ public class CommonProxy implements IGuiProvider
{
return new ContainerRobitInventory(player.inventory, robit);
}
return null;
case 24:
robit = (EntityRobit)world.getEntityByID(pos.getX());
@@ -493,6 +501,8 @@ public class CommonProxy implements IGuiProvider
{
return new ContainerRobitSmelting(player.inventory, robit);
}
return null;
case 25:
robit = (EntityRobit)world.getEntityByID(pos.getX());
@@ -500,6 +510,8 @@ public class CommonProxy implements IGuiProvider
{
return new ContainerRobitRepair(player.inventory, robit);
}
return null;
case 26:
return new ContainerNull(player, (TileEntityContainerBlock)tileEntity);
case 27: