From 5cb4c6e24033cf337812390d99a6817d24d21eab Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sun, 12 Feb 2017 20:43:03 +0300 Subject: Removed explosion radius limitations. Explosion calculation optimized (reduced memory usage). One more detonator and explosive pack recipe. GT6 recipes for both chemical reactors and cryogenic distiller. Max stack size of muffle furnace is limited to 32. A lot of old features are removed. --- ihl/items_blocks/IHLItemBlock.java | 43 -------------------------------------- 1 file changed, 43 deletions(-) (limited to 'ihl/items_blocks/IHLItemBlock.java') diff --git a/ihl/items_blocks/IHLItemBlock.java b/ihl/items_blocks/IHLItemBlock.java index 3bde475..c25450d 100644 --- a/ihl/items_blocks/IHLItemBlock.java +++ b/ihl/items_blocks/IHLItemBlock.java @@ -10,9 +10,6 @@ import ic2.api.tile.IWrenchable; import ic2.core.IC2; import ihl.IHLCreativeTab; import ihl.IHLModInfo; -import ihl.collector.ChargerEjectorTileEntity; -import ihl.processing.metallurgy.PassiveBlock; -import ihl.tunneling_shield.DriverTileEntity; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -101,25 +98,6 @@ public class IHLItemBlock extends ItemBlock{ this.field_150939_a.onBlockPlacedBy(world, x, y, z, player, par1ItemStack); this.field_150939_a.onPostBlockPlaced(world, x, y, z, var13); TileEntity tile=world.getTileEntity(x, y, z); - if(tile!=null && par1ItemStack.stackTagCompound!=null && par1ItemStack.stackTagCompound.hasKey("energy") && tile instanceof ChargerEjectorTileEntity && IC2.platform.isSimulating()) - { - ChargerEjectorTileEntity te=(ChargerEjectorTileEntity)tile; - double energy; - try - { - energy = par1ItemStack.stackTagCompound.getDouble("energy"); - } - catch (Exception var3) - { - energy = par1ItemStack.stackTagCompound.getInteger("energy"); - - if (energy > Integer.MAX_VALUE) - { - energy *= 10.0D; - } - } - te.setStored(energy); - } if(tile instanceof IWrenchable && IC2.platform.isSimulating()) { IWrenchable te=(IWrenchable)tile; @@ -234,27 +212,6 @@ public class IHLItemBlock extends ItemBlock{ } } - @Override - public boolean onItemUseFirst(ItemStack itemstack, EntityPlayer entityPlayer, World world, int x, int y, int z, int l, float hitX, float hitY, float hitZ) - { - TileEntity tileEntity = world.getTileEntity(x, y, z); - if (tileEntity instanceof DriverTileEntity && IC2.platform.isSimulating()) - { - DriverTileEntity dte = (DriverTileEntity) tileEntity; - if(itemstack.getUnlocalizedName()==PassiveBlock.Type.IHLShieldAssemblyUnitBlock.unlocalizedName) - { - dte.installShield(); - itemstack.stackSize--; - } - else if(itemstack.getUnlocalizedName()==PassiveBlock.Type.AdvancedShieldAssemblyUnitBlock.unlocalizedName) - { - dte.installAdvancedShield(); - itemstack.stackSize--; - } - } - return false; - } - @SuppressWarnings({ "rawtypes", "unchecked" }) @Override public void addInformation(ItemStack itemStack, EntityPlayer player, List info, boolean flag) -- cgit v1.2.3