Properly Generalizing Things

This commit is contained in:
oitsjustjose 2015-10-31 17:40:11 -05:00
commit b3c26314ba
5 changed files with 10 additions and 10 deletions

View file

@ -110,8 +110,8 @@ public class BlockCobblegen extends BlockMachineBase
} }
else else
{ {
TileEntityCobblegen tileext = (TileEntityCobblegen) world.getTileEntity(x, y, z); TileEntityCobblegen tile = (TileEntityCobblegen) world.getTileEntity(x, y, z);
if(tileext != null) if(tile != null)
player.openGui(CrissCross.instance, GUIHandler.Cobblegen, world, x, y, z); player.openGui(CrissCross.instance, GUIHandler.Cobblegen, world, x, y, z);
return true; return true;
} }

View file

@ -111,8 +111,8 @@ public class BlockCropomator extends BlockMachineBase
} }
else else
{ {
TileEntityCropomator tilecropomator = (TileEntityCropomator) world.getTileEntity(x, y, z); TileEntityCropomator tile = (TileEntityCropomator) world.getTileEntity(x, y, z);
if(tilecropomator != null) if(tile != null)
player.openGui(CrissCross.instance, GUIHandler.Cropomator, world, x, y, z); player.openGui(CrissCross.instance, GUIHandler.Cropomator, world, x, y, z);
return true; return true;
} }

View file

@ -111,8 +111,8 @@ public class BlockElectroextractor extends BlockMachineBase
} }
else else
{ {
TileEntityElectroextractor tileext = (TileEntityElectroextractor) world.getTileEntity(x, y, z); TileEntityElectroextractor tile = (TileEntityElectroextractor) world.getTileEntity(x, y, z);
if(tileext != null) if(tile != null)
player.openGui(CrissCross.instance, GUIHandler.Electroextractor, world, x, y, z); player.openGui(CrissCross.instance, GUIHandler.Electroextractor, world, x, y, z);
return true; return true;
} }

View file

@ -110,8 +110,8 @@ public class BlockStonegen extends BlockMachineBase
} }
else else
{ {
TileEntityStonegen tileext = (TileEntityStonegen) world.getTileEntity(x, y, z); TileEntityStonegen tile = (TileEntityStonegen) world.getTileEntity(x, y, z);
if(tileext != null) if(tile != null)
player.openGui(CrissCross.instance, GUIHandler.Stonegen, world, x, y, z); player.openGui(CrissCross.instance, GUIHandler.Stonegen, world, x, y, z);
return true; return true;
} }

View file

@ -110,8 +110,8 @@ public class BlockWoodchipper extends BlockMachineBase
} }
else else
{ {
TileEntityWoodchipper tileext = (TileEntityWoodchipper) world.getTileEntity(x, y, z); TileEntityWoodchipper tile = (TileEntityWoodchipper) world.getTileEntity(x, y, z);
if(tileext != null) if(tile != null)
player.openGui(CrissCross.instance, GUIHandler.Woodchipper, world, x, y, z); player.openGui(CrissCross.instance, GUIHandler.Woodchipper, world, x, y, z);
return true; return true;
} }