Finish refactoring wrenching/itemdrops into base classes.

Also fix conduits not rendering break texture
This commit is contained in:
tterrag1098 committed 2015-02-03 19:22:24 -05:00
1 parent 01194de240
commit d3417225d1
23 files changed
+218 -313

No files matched your search

@@ -255,17 +255,7 @@ public class BlockHyperCube extends BlockEio implements IGuiHandler, IResourceTo
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer entityPlayer, int par6, float par7, float par8, float par9) {
if(ToolUtil.breakBlockWithTool(this, world, x, y, z, entityPlayer)) {
return true;
}
if(entityPlayer.isSneaking()) {
return false;
}
TileEntity te = world.getTileEntity(x, y, z);
if(!(te instanceof TileHyperCube)) {
return false;
}
protected boolean openGui(World world, int x, int y, int z, EntityPlayer entityPlayer, int side) {
if(!world.isRemote) {
entityPlayer.openGui(EnderIO.instance, GuiHandler.GUI_ID_HYPER_CUBE, world, x, y, z);
}