Properly Generalizing Things
This commit is contained in:
parent
46dda84b1c
commit
b3c26314ba
5 changed files with 10 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue