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
{
TileEntityCobblegen tileext = (TileEntityCobblegen) world.getTileEntity(x, y, z);
if(tileext != null)
TileEntityCobblegen tile = (TileEntityCobblegen) world.getTileEntity(x, y, z);
if(tile != null)
player.openGui(CrissCross.instance, GUIHandler.Cobblegen, world, x, y, z);
return true;
}

View file

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

View file

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

View file

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

View file

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