diff --git a/bin/minecraft/resources/mekanism/textures/terrain.png b/bin/minecraft/resources/mekanism/textures/terrain.png index 3e45ba82e..742407382 100755 Binary files a/bin/minecraft/resources/mekanism/textures/terrain.png and b/bin/minecraft/resources/mekanism/textures/terrain.png differ diff --git a/src/minecraft/mekanism/common/BlockBasic.java b/src/minecraft/mekanism/common/BlockBasic.java index 780bc1e77..349831831 100644 --- a/src/minecraft/mekanism/common/BlockBasic.java +++ b/src/minecraft/mekanism/common/BlockBasic.java @@ -32,6 +32,7 @@ import net.minecraftforge.common.ForgeChunkManager; * 5: Steel Block * 6: Control Panel * 7: Teleporter + * 8: Teleporter Frame * @author AidanBrady * */ @@ -67,6 +68,8 @@ public class BlockBasic extends Block return 0; case 7: return 25; + case 8: + return 27; } return 0; } @@ -89,6 +92,7 @@ public class BlockBasic extends Block list.add(new ItemStack(i, 1, 5)); //list.add(new ItemStack(i, 1, 6)); list.add(new ItemStack(i, 1, 7)); + list.add(new ItemStack(i, 1, 8)); } @Override @@ -142,6 +146,8 @@ public class BlockBasic extends Block return 8; case 4: return 15; + case 8: + return 12; } return 0; } diff --git a/src/minecraft/mekanism/common/CommonProxy.java b/src/minecraft/mekanism/common/CommonProxy.java index c920ec888..666b7cd4d 100644 --- a/src/minecraft/mekanism/common/CommonProxy.java +++ b/src/minecraft/mekanism/common/CommonProxy.java @@ -68,7 +68,7 @@ public class CommonProxy Mekanism.platinumGenerationEnabled = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "PlatinumGenerationEnabled", true).getBoolean(true); Mekanism.disableBCSteelCrafting = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "DisableBCSteelCrafting", false).getBoolean(true); Mekanism.disableBCBronzeCrafting = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "DisableBCBronzeCrafting", false).getBoolean(true); - Mekanism.notifyNewReleases = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "NotifyNewReleases", false).getBoolean(true); + Mekanism.updateNotifications = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "UpdateNotifications", true).getBoolean(true); Mekanism.configuration.save(); } diff --git a/src/minecraft/mekanism/common/ContainerAdvancedElectricMachine.java b/src/minecraft/mekanism/common/ContainerAdvancedElectricMachine.java index d71a7431b..86f34c119 100644 --- a/src/minecraft/mekanism/common/ContainerAdvancedElectricMachine.java +++ b/src/minecraft/mekanism/common/ContainerAdvancedElectricMachine.java @@ -1,6 +1,7 @@ package mekanism.common; import ic2.api.IElectricItem; +import mekanism.api.IStorageTank; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.Container; @@ -130,7 +131,7 @@ public class ContainerAdvancedElectricMachine extends Container } } } - else if(tileEntity.getFuelTicks(slotStack) > 0) + else if(tileEntity.getFuelTicks(slotStack) > 0 || (tileEntity instanceof TileEntityPurificationChamber && slotStack.getItem() instanceof IStorageTank)) { if(slotID != 0 && slotID != 1 && slotID != 2 && slotID != 3) { diff --git a/src/minecraft/mekanism/common/ItemBlockBasic.java b/src/minecraft/mekanism/common/ItemBlockBasic.java index aeee118f4..a893d0474 100644 --- a/src/minecraft/mekanism/common/ItemBlockBasic.java +++ b/src/minecraft/mekanism/common/ItemBlockBasic.java @@ -14,6 +14,7 @@ import net.minecraft.item.ItemStack; * 5: Steel Block * 6: Control Panel * 7: Teleporter + * 8: Teleporter Frame * @author AidanBrady * */ @@ -70,6 +71,9 @@ public class ItemBlockBasic extends ItemBlock case 7: name = "Teleporter"; break; + case 8: + name = "TeleporterFrame"; + break; default: name = "Unknown"; break; diff --git a/src/minecraft/mekanism/common/Mekanism.java b/src/minecraft/mekanism/common/Mekanism.java index cdf2cd826..8ff69bbe2 100644 --- a/src/minecraft/mekanism/common/Mekanism.java +++ b/src/minecraft/mekanism/common/Mekanism.java @@ -49,7 +49,7 @@ import cpw.mods.fml.server.FMLServerHandler; * @author AidanBrady * */ -@Mod(modid = "Mekanism", name = "Mekanism", version = "5.2.0") +@Mod(modid = "Mekanism", name = "Mekanism", version = "5.2.2") @NetworkMod(channels = {"Mekanism"}, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketHandler.class) public class Mekanism { @@ -71,7 +71,7 @@ public class Mekanism public static Configuration configuration; /** Mekanism version number */ - public static Version versionNumber = new Version(5, 2, 0); + public static Version versionNumber = new Version(5, 2, 2); /** Map of Teleporter info. */ public static Map> teleporters = new HashMap>(); @@ -146,7 +146,7 @@ public class Mekanism public static boolean platinumGenerationEnabled = true; public static boolean disableBCBronzeCrafting = true; public static boolean disableBCSteelCrafting = true; - public static boolean notifyNewReleases = true; + public static boolean updateNotifications = true; //Extra data public static float ObsidianTNTBlastRadius = 12.0F; @@ -291,7 +291,7 @@ public class Mekanism " E ", "CTC", " E ", Character.valueOf('E'), EnergyTablet.getUnchargedItem(), Character.valueOf('C'), "basicCircuit", Character.valueOf('T'), TeleportationCore })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(BasicBlock, 1, 7), new Object[] { - "COC", "OTO", "COC", Character.valueOf('C'), "basicCircuit", Character.valueOf('O'), new ItemStack(BasicBlock, 1, 2), Character.valueOf('T'), TeleportationCore + "COC", "OTO", "COC", Character.valueOf('C'), "basicCircuit", Character.valueOf('O'), new ItemStack(BasicBlock, 1, 8), Character.valueOf('T'), TeleportationCore })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(MachineBlock, 1, 9), new Object[] { "CAC", "ERE", "CAC", Character.valueOf('C'), "basicCircuit", Character.valueOf('A'), AtomicCore, Character.valueOf('E'), EnrichedAlloy, Character.valueOf('R'), new ItemStack(MachineBlock, 1, 0) @@ -299,6 +299,9 @@ public class Mekanism CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(Configurator), new Object[] { " L ", "AEA", " S ", Character.valueOf('L'), new ItemStack(Item.dyePowder, 1, 4), Character.valueOf('A'), EnrichedAlloy, Character.valueOf('E'), EnergyTablet.getUnchargedItem(), Character.valueOf('S'), Item.stick })); + CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(BasicBlock, 4, 8), new Object[] { + "OOO", "OGO", "OOO", Character.valueOf('O'), "ingotRefinedObsidian", Character.valueOf('G'), "ingotRefinedGlowstone" + })); if(extrasEnabled) { @@ -322,6 +325,10 @@ public class Mekanism RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Block.oreIron), new ItemStack(Dust, 2, 0)); RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Block.oreGold), new ItemStack(Dust, 2, 1)); RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Item.coal, 4), new ItemStack(CompressedCarbon, 8)); + RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Block.oreLapis), new ItemStack(Item.dyePowder, 12, 4)); + RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Block.oreRedstone), new ItemStack(Item.redstone, 12)); + RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Block.oreCoal), new ItemStack(Block.oreCoal)); + RecipeHandler.addEnrichmentChamberRecipe(new ItemStack(Block.oreDiamond), new ItemStack(Item.diamond, 2)); //Platinum Compressor Recipes RecipeHandler.addPlatinumCompressorRecipe(new ItemStack(Item.lightStoneDust), new ItemStack(Ingot, 1, 3)); @@ -330,10 +337,13 @@ public class Mekanism RecipeHandler.addCrusherRecipe(new ItemStack(Item.diamond), new ItemStack(Dust, 1, 4)); RecipeHandler.addCrusherRecipe(new ItemStack(Item.ingotIron), new ItemStack(Dust, 1, 0)); RecipeHandler.addCrusherRecipe(new ItemStack(Item.ingotGold), new ItemStack(Dust, 1, 1)); + RecipeHandler.addCrusherRecipe(new ItemStack(Block.gravel), new ItemStack(Item.flint)); + RecipeHandler.addCrusherRecipe(new ItemStack(Block.stone), new ItemStack(Block.cobblestone)); + RecipeHandler.addCrusherRecipe(new ItemStack(Block.cobblestone), new ItemStack(Block.sand)); //Purification Chamber Recipes - RecipeHandler.addPurificationChamberRecipe(new ItemStack(Block.oreIron), new ItemStack(Clump, 1, 0)); - RecipeHandler.addPurificationChamberRecipe(new ItemStack(Block.oreGold), new ItemStack(Clump, 1, 1)); + RecipeHandler.addPurificationChamberRecipe(new ItemStack(Block.oreIron), new ItemStack(Clump, 3, 0)); + RecipeHandler.addPurificationChamberRecipe(new ItemStack(Block.oreGold), new ItemStack(Clump, 3, 1)); //Metallurgic Infuser Recipes RecipeHandler.addMetallurgicInfuserRecipe(InfusionInput.getInfusion(InfusionType.COAL, 10, new ItemStack(EnrichedIron)), new ItemStack(Dust, 1, 5)); @@ -382,6 +392,7 @@ public class Mekanism LanguageRegistry.instance().addStringLocalization("tile.BasicBlock.SteelBlock.name", "Steel Block"); LanguageRegistry.instance().addStringLocalization("tile.BasicBlock.ControlPanel.name", "Control Panel"); LanguageRegistry.instance().addStringLocalization("tile.BasicBlock.Teleporter.name", "Teleporter"); + LanguageRegistry.instance().addStringLocalization("tile.BasicBlock.TeleporterFrame.name", "Teleporter Frame"); //Localization for MachineBlock LanguageRegistry.instance().addStringLocalization("tile.MachineBlock.EnrichmentChamber.name", "Enrichment Chamber"); @@ -655,7 +666,7 @@ public class Mekanism for(ItemStack ore : OreDictionary.getOres("ingotLead")) { - RecipeHandler.addCrusherRecipe(ore, OreDictionary.getOres("dustLead").get(0)); + RecipeHandler.addCrusherRecipe(ore, MekanismUtils.getStackWithSize(OreDictionary.getOres("dustLead").get(0), 1)); } } catch(Exception e) {} @@ -667,7 +678,7 @@ public class Mekanism for(ItemStack ore : OreDictionary.getOres("ingotSilver")) { - RecipeHandler.addCrusherRecipe(ore, OreDictionary.getOres("dustSilver").get(0)); + RecipeHandler.addCrusherRecipe(ore, MekanismUtils.getStackWithSize(OreDictionary.getOres("dustSilver").get(0), 1)); } } catch(Exception e) {} @@ -702,14 +713,14 @@ public class Mekanism try { for(ItemStack ore : OreDictionary.getOres("ingotCopper")) { - RecipeHandler.addCrusherRecipe(ore, new ItemStack(Dust, 1, 6)); + RecipeHandler.addCrusherRecipe(MekanismUtils.getStackWithSize(ore, 1), new ItemStack(Dust, 1, 6)); } } catch(Exception e) {} try { for(ItemStack ore : OreDictionary.getOres("ingotTin")) { - RecipeHandler.addCrusherRecipe(ore, new ItemStack(Dust, 1, 7)); + RecipeHandler.addCrusherRecipe(MekanismUtils.getStackWithSize(ore, 1), new ItemStack(Dust, 1, 7)); } } catch(Exception e) {} diff --git a/src/minecraft/mekanism/common/MekanismUtils.java b/src/minecraft/mekanism/common/MekanismUtils.java index e340b89ca..b2829162a 100644 --- a/src/minecraft/mekanism/common/MekanismUtils.java +++ b/src/minecraft/mekanism/common/MekanismUtils.java @@ -37,7 +37,7 @@ public final class MekanismUtils */ public static void checkForUpdates(EntityPlayer entityplayer) { - if(Mekanism.notifyNewReleases) + if(Mekanism.updateNotifications) { if(!Mekanism.latestVersionNumber.equals("Error retrieving data.")) { diff --git a/src/minecraft/mekanism/common/TileEntityAdvancedElectricMachine.java b/src/minecraft/mekanism/common/TileEntityAdvancedElectricMachine.java index 657267fc3..ecc7ec82c 100644 --- a/src/minecraft/mekanism/common/TileEntityAdvancedElectricMachine.java +++ b/src/minecraft/mekanism/common/TileEntityAdvancedElectricMachine.java @@ -121,28 +121,7 @@ public abstract class TileEntityAdvancedElectricMachine extends TileEntityBasicM } } - if(inventory[1] != null) - { - int fuelTicks = getFuelTicks(inventory[1]); - int energyNeeded = MAX_SECONDARY_ENERGY - secondaryEnergyStored; - if(fuelTicks > 0 && fuelTicks <= energyNeeded) - { - if(fuelTicks <= energyNeeded) - { - setSecondaryEnergy(secondaryEnergyStored + fuelTicks); - } - else if(fuelTicks > energyNeeded) - { - setSecondaryEnergy(secondaryEnergyStored + energyNeeded); - } - --inventory[1].stackSize; - - if(inventory[1].stackSize == 0) - { - inventory[1] = null; - } - } - } + handleSecondaryFuel(); if(inventory[4] != null && inventory[4].getItem() instanceof IMachineUpgrade) { @@ -204,6 +183,32 @@ public abstract class TileEntityAdvancedElectricMachine extends TileEntityBasicM } } } + + public void handleSecondaryFuel() + { + if(inventory[1] != null) + { + int fuelTicks = getFuelTicks(inventory[1]); + int energyNeeded = MAX_SECONDARY_ENERGY - secondaryEnergyStored; + if(fuelTicks > 0 && fuelTicks <= energyNeeded) + { + if(fuelTicks <= energyNeeded) + { + setSecondaryEnergy(secondaryEnergyStored + fuelTicks); + } + else if(fuelTicks > energyNeeded) + { + setSecondaryEnergy(secondaryEnergyStored + energyNeeded); + } + --inventory[1].stackSize; + + if(inventory[1].stackSize == 0) + { + inventory[1] = null; + } + } + } + } @Override public void operate() diff --git a/src/minecraft/mekanism/common/TileEntityEliteSmeltingFactory.java b/src/minecraft/mekanism/common/TileEntityEliteSmeltingFactory.java index c2648a6ff..f7ed14465 100644 --- a/src/minecraft/mekanism/common/TileEntityEliteSmeltingFactory.java +++ b/src/minecraft/mekanism/common/TileEntityEliteSmeltingFactory.java @@ -12,8 +12,8 @@ public class TileEntityEliteSmeltingFactory extends TileEntitySmeltingFactory sideOutputs.add(new SideData(EnumColor.GREY, 0, 0)); sideOutputs.add(new SideData(EnumColor.ORANGE, 0, 1)); sideOutputs.add(new SideData(EnumColor.DARK_GREEN, 1, 1)); - sideOutputs.add(new SideData(EnumColor.DARK_RED, 2, 3)); - sideOutputs.add(new SideData(EnumColor.DARK_BLUE, 5, 3)); + sideOutputs.add(new SideData(EnumColor.DARK_RED, 2, 7)); + sideOutputs.add(new SideData(EnumColor.DARK_BLUE, 9, 7)); sideConfig = new byte[] {4, 3, 0, 0, 2, 1}; } diff --git a/src/minecraft/mekanism/common/TileEntityPurificationChamber.java b/src/minecraft/mekanism/common/TileEntityPurificationChamber.java index 1513b9089..300291f69 100644 --- a/src/minecraft/mekanism/common/TileEntityPurificationChamber.java +++ b/src/minecraft/mekanism/common/TileEntityPurificationChamber.java @@ -5,11 +5,19 @@ import java.util.HashMap; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraftforge.common.ForgeDirection; +import mekanism.api.EnumGas; +import mekanism.api.IGasAcceptor; +import mekanism.api.IGasStorage; +import mekanism.api.IStorageTank; import mekanism.common.RecipeHandler.Recipe; -public class TileEntityPurificationChamber extends TileEntityAdvancedElectricMachine +public class TileEntityPurificationChamber extends TileEntityAdvancedElectricMachine implements IGasAcceptor, IGasStorage { + public int oxygenStored; + public TileEntityPurificationChamber() { super("PurificationChamber.ogg", "Purification Chamber", "/resources/mekanism/gui/GuiPurificationChamber.png", 16, 1, 200, 12000, 1200); @@ -24,8 +32,89 @@ public class TileEntityPurificationChamber extends TileEntityAdvancedElectricMac @Override public int getFuelTicks(ItemStack itemstack) { - if(itemstack.isItemEqual(new ItemStack(Block.sand))) return 10; if(itemstack.isItemEqual(new ItemStack(Item.flint))) return 300; + return 0; } + + @Override + public int getGas(EnumGas type) + { + if(type == EnumGas.OXYGEN) + { + return secondaryEnergyStored; + } + + return 0; + } + + @Override + public void setGas(EnumGas type, int amount) + { + if(type == EnumGas.OXYGEN) + { + setSecondaryEnergy(amount); + } + } + + @Override + public int transferGasToAcceptor(int amount, EnumGas type) + { + if(type == EnumGas.OXYGEN) + { + int rejects = 0; + int neededGas = MAX_SECONDARY_ENERGY-secondaryEnergyStored; + if(amount <= neededGas) + { + secondaryEnergyStored += amount; + } + else if(amount > neededGas) + { + secondaryEnergyStored += neededGas; + rejects = amount-neededGas; + } + + return rejects; + } + return 0; + } + + @Override + public boolean canReceiveGas(ForgeDirection side, EnumGas type) + { + return type == EnumGas.OXYGEN; + } + + @Override + public void handleSecondaryFuel() + { + if(inventory[1] != null && secondaryEnergyStored < MAX_SECONDARY_ENERGY) + { + if(inventory[1].getItem() instanceof IStorageTank) + { + if(((IStorageTank)inventory[1].getItem()).getGasType(inventory[1]) == EnumGas.OXYGEN) + { + IStorageTank item = (IStorageTank)inventory[1].getItem(); + + if(item.canProvideGas(inventory[1], EnumGas.OXYGEN)) + { + int received = 0; + int gasNeeded = (MAX_SECONDARY_ENERGY - secondaryEnergyStored)/2; + if(item.getRate() <= gasNeeded) + { + received = item.removeGas(inventory[1], EnumGas.OXYGEN, item.getRate()); + } + else if(item.getRate() > gasNeeded) + { + received = item.removeGas(inventory[1], EnumGas.OXYGEN, gasNeeded); + } + + setGas(EnumGas.OXYGEN, secondaryEnergyStored + received*2); + } + } + } + } + + super.handleSecondaryFuel(); + } } diff --git a/src/minecraft/mekanism/common/TileEntityTeleporter.java b/src/minecraft/mekanism/common/TileEntityTeleporter.java index 6a7657621..24c226ddb 100644 --- a/src/minecraft/mekanism/common/TileEntityTeleporter.java +++ b/src/minecraft/mekanism/common/TileEntityTeleporter.java @@ -332,7 +332,7 @@ public class TileEntityTeleporter extends TileEntityElectricBlock implements IEn public boolean isFrame(int x, int y, int z) { - return worldObj.getBlockId(x, y, z) == Mekanism.basicBlockID && worldObj.getBlockMetadata(x, y, z) == 2; + return worldObj.getBlockId(x, y, z) == Mekanism.basicBlockID && worldObj.getBlockMetadata(x, y, z) == 8; } public int getScaledEnergyLevel(int i) diff --git a/src/minecraft/mekanism/generators/client/ModelBioGenerator.java b/src/minecraft/mekanism/generators/client/ModelBioGenerator.java index 29dbd1084..620527e2e 100644 --- a/src/minecraft/mekanism/generators/client/ModelBioGenerator.java +++ b/src/minecraft/mekanism/generators/client/ModelBioGenerator.java @@ -129,12 +129,6 @@ public class ModelBioGenerator extends ModelBase PLUG_PANEL.setTextureSize(128, 128); PLUG_PANEL.mirror = true; setRotation(PLUG_PANEL, 0F, 0F, 0F); - /*PISTON_HEAD_MOVES = new ModelRenderer(this, 8, 50); - PISTON_HEAD_MOVES.addBox(0F, 0F, 0F, 4, 2, 4); - PISTON_HEAD_MOVES.setRotationPoint(-2F, 13F, -7F); - PISTON_HEAD_MOVES.setTextureSize(128, 128); - PISTON_HEAD_MOVES.mirror = true; - setRotation(PISTON_HEAD_MOVES, 0F, 0F, 0F);*/ PISTON_ARM_MOVES = new ModelRenderer(this, 8, 57); PISTON_ARM_MOVES.addBox(0F, 0F, 0F, 2, 2, 2); PISTON_ARM_MOVES.setRotationPoint(-1F, 11F, -6F); diff --git a/src/minecraft/mekanism/generators/common/MekanismGenerators.java b/src/minecraft/mekanism/generators/common/MekanismGenerators.java index 61f8be619..8624ff85e 100644 --- a/src/minecraft/mekanism/generators/common/MekanismGenerators.java +++ b/src/minecraft/mekanism/generators/common/MekanismGenerators.java @@ -19,7 +19,7 @@ import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; -@Mod(modid = "MekanismGenerators", name = "MekanismGenerators", version = "5.2.0", dependencies = "required-after:Mekanism") +@Mod(modid = "MekanismGenerators", name = "MekanismGenerators", version = "5.2.2", dependencies = "required-after:Mekanism") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class MekanismGenerators { diff --git a/src/minecraft/mekanism/generators/common/TileEntityBioGenerator.java b/src/minecraft/mekanism/generators/common/TileEntityBioGenerator.java index 998b7883e..a11899757 100644 --- a/src/minecraft/mekanism/generators/common/TileEntityBioGenerator.java +++ b/src/minecraft/mekanism/generators/common/TileEntityBioGenerator.java @@ -44,7 +44,7 @@ public class TileEntityBioGenerator extends TileEntityGenerator implements ITank public TileEntityBioGenerator() { - super("Bio-Generator", 160000, 600); + super("Bio-Generator", 160000, 128); inventory = new ItemStack[2]; } diff --git a/src/minecraft/mekanism/generators/common/TileEntityElectrolyticSeparator.java b/src/minecraft/mekanism/generators/common/TileEntityElectrolyticSeparator.java index da19ad1e0..73af8ce7d 100644 --- a/src/minecraft/mekanism/generators/common/TileEntityElectrolyticSeparator.java +++ b/src/minecraft/mekanism/generators/common/TileEntityElectrolyticSeparator.java @@ -225,7 +225,7 @@ public class TileEntityElectrolyticSeparator extends TileEntityElectricBlock imp if(oxygenStored < MAX_GAS && hydrogenStored < MAX_GAS && waterSlot.liquidStored-2 >= 0 && electricityStored-4 > 0) { - waterSlot.setLiquid(waterSlot.liquidStored - 10); + waterSlot.setLiquid(waterSlot.liquidStored - 2); setJoules(electricityStored - 16); setGas(EnumGas.OXYGEN, oxygenStored + 1); setGas(EnumGas.HYDROGEN, hydrogenStored + 2); diff --git a/src/minecraft/mekanism/generators/common/TileEntityGenerator.java b/src/minecraft/mekanism/generators/common/TileEntityGenerator.java index e8bbe8def..4292799b2 100644 --- a/src/minecraft/mekanism/generators/common/TileEntityGenerator.java +++ b/src/minecraft/mekanism/generators/common/TileEntityGenerator.java @@ -126,7 +126,7 @@ public abstract class TileEntityGenerator extends TileEntityElectricBlock implem { double outputWatts = Math.min(outputNetwork.getRequest().getWatts(), getJoules()); - if(getJoules() > 0 && outputWatts > 0) + if(getJoules() > 0 && outputWatts > 0 && getJoules()-outputWatts >= 0) { outputNetwork.startProducing(this, outputWatts / getVoltage(), getVoltage()); setJoules(electricityStored - outputWatts); diff --git a/src/minecraft/mekanism/generators/common/TileEntityHeatGenerator.java b/src/minecraft/mekanism/generators/common/TileEntityHeatGenerator.java index 5d55d6b88..26ed2a826 100644 --- a/src/minecraft/mekanism/generators/common/TileEntityHeatGenerator.java +++ b/src/minecraft/mekanism/generators/common/TileEntityHeatGenerator.java @@ -36,7 +36,7 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements ITan public LiquidSlot fuelSlot = new LiquidSlot(24000, Mekanism.hooks.BuildCraftFuelID); /** The amount of electricity this machine can produce with a unit of fuel. */ - public final int GENERATION = 100; + public final int GENERATION = 80; public TileEntityHeatGenerator() { @@ -85,17 +85,17 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements ITan { fuelSlot.liquidStored += fuel; --inventory[0].stackSize; + + if(prevStack.isItemEqual(new ItemStack(Item.bucketLava))) + { + inventory[0] = new ItemStack(Item.bucketEmpty); + } } if(inventory[0].stackSize == 0) { inventory[0] = null; } - - if(prevStack.isItemEqual(new ItemStack(Item.bucketLava))) - { - inventory[0] = new ItemStack(Item.bucketEmpty); - } } } @@ -146,17 +146,17 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements ITan int boost = 0; if(worldObj.getBlockId(xCoord+1, yCoord, zCoord) == 10 || worldObj.getBlockId(xCoord+1, yCoord, zCoord) == 11) - boost+=10; + boost+=5; if(worldObj.getBlockId(xCoord-1, yCoord, zCoord) == 10 || worldObj.getBlockId(xCoord-1, yCoord, zCoord) == 11) - boost+=10; + boost+=5; if(worldObj.getBlockId(xCoord, yCoord+1, zCoord) == 10 || worldObj.getBlockId(xCoord, yCoord+1, zCoord) == 11) - boost+=10; + boost+=5; if(worldObj.getBlockId(xCoord, yCoord-1, zCoord) == 10 || worldObj.getBlockId(xCoord, yCoord-1, zCoord) == 11) - boost+=10; + boost+=5; if(worldObj.getBlockId(xCoord, yCoord, zCoord+1) == 10 || worldObj.getBlockId(xCoord, yCoord, zCoord+1) == 11) - boost+=10; + boost+=5; if(worldObj.getBlockId(xCoord, yCoord, zCoord-1) == 10 || worldObj.getBlockId(xCoord, yCoord, zCoord-1) == 11) - boost+=10; + boost+=5; return boost; } diff --git a/src/minecraft/mekanism/generators/common/TileEntityHydrogenGenerator.java b/src/minecraft/mekanism/generators/common/TileEntityHydrogenGenerator.java index c2adf0ca6..e61e33ed3 100644 --- a/src/minecraft/mekanism/generators/common/TileEntityHydrogenGenerator.java +++ b/src/minecraft/mekanism/generators/common/TileEntityHydrogenGenerator.java @@ -92,7 +92,7 @@ public class TileEntityHydrogenGenerator extends TileEntityGenerator implements setActive(true); } - hydrogenStored-=10; + hydrogenStored-=2; setJoules(electricityStored + 1000); } else { diff --git a/src/minecraft/mekanism/tools/common/MekanismTools.java b/src/minecraft/mekanism/tools/common/MekanismTools.java index d1b95cf2a..eace25535 100644 --- a/src/minecraft/mekanism/tools/common/MekanismTools.java +++ b/src/minecraft/mekanism/tools/common/MekanismTools.java @@ -26,7 +26,7 @@ import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; -@Mod(modid = "MekanismTools", name = "MekanismTools", version = "5.2.0", dependencies = "required-after:Mekanism") +@Mod(modid = "MekanismTools", name = "MekanismTools", version = "5.2.2", dependencies = "required-after:Mekanism") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class MekanismTools { @@ -40,8 +40,8 @@ public class MekanismTools public static EnumToolMaterial toolLAZULI2 = EnumHelper.addToolMaterial("LAZULI2", 2, 250, 6F, 4, 50); public static EnumToolMaterial toolPLATINUM = EnumHelper.addToolMaterial("PLATINUM", 2, 500, 10F, 4, 30); public static EnumToolMaterial toolPLATINUM2 = EnumHelper.addToolMaterial("PLATINUM2", 3, 700, 12F, 5, 40); - public static EnumToolMaterial toolBRONZE = EnumHelper.addToolMaterial("BRONZE", 3, 1000, 16F, 6, 100); - public static EnumToolMaterial toolBRONZE2 = EnumHelper.addToolMaterial("BRONZE2", 3, 1400, 22F, 10, 100); + public static EnumToolMaterial toolBRONZE = EnumHelper.addToolMaterial("BRONZE", 2, 800, 14F, 6, 100); + public static EnumToolMaterial toolBRONZE2 = EnumHelper.addToolMaterial("BRONZE2", 3, 1100, 16F, 10, 100); public static EnumToolMaterial toolGLOWSTONE = EnumHelper.addToolMaterial("GLOWSTONE", 2, 300, 14F, 5, 80); public static EnumToolMaterial toolGLOWSTONE2 = EnumHelper.addToolMaterial("GLOWSTONE2", 2, 450, 18F, 5, 100); public static EnumToolMaterial toolSTEEL = EnumHelper.addToolMaterial("STEEL", 3, 850, 14F, 4, 100); @@ -51,7 +51,7 @@ public class MekanismTools public static EnumArmorMaterial armorOBSIDIAN = EnumHelper.addArmorMaterial("OBSIDIAN", 50, new int[]{5, 12, 8, 5}, 50); public static EnumArmorMaterial armorLAZULI = EnumHelper.addArmorMaterial("LAZULI", 13, new int[]{2, 5, 4, 2}, 50); public static EnumArmorMaterial armorPLATINUM = EnumHelper.addArmorMaterial("PLATINUM", 30, new int[]{3, 9, 7, 3}, 50); - public static EnumArmorMaterial armorBRONZE = EnumHelper.addArmorMaterial("BRONZE", 42, new int[]{4, 10, 8, 4}, 50); + public static EnumArmorMaterial armorBRONZE = EnumHelper.addArmorMaterial("BRONZE", 35, new int[]{3, 8, 6, 2}, 50); public static EnumArmorMaterial armorGLOWSTONE = EnumHelper.addArmorMaterial("GLOWSTONE", 18, new int[]{3, 7, 6, 3}, 50); public static EnumArmorMaterial armorSTEEL = EnumHelper.addArmorMaterial("STEEL", 40, new int[] {4, 10, 8, 4}, 50); @@ -172,34 +172,34 @@ public class MekanismTools //Obsidian CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianHelmet, 1), new Object[] { - "***", "* *", Character.valueOf('*'), "ingotObsidian" + "***", "* *", Character.valueOf('*'), "ingotRefinedObsidian" })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianBody, 1), new Object[] { - "* *", "***", "***", Character.valueOf('*'), "ingotObsidian" + "* *", "***", "***", Character.valueOf('*'), "ingotRefinedObsidian" })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianLegs, 1), new Object[] { - "***", "* *", "* *", Character.valueOf('*'), "ingotObsidian" + "***", "* *", "* *", Character.valueOf('*'), "ingotRefinedObsidian" })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianBoots, 1), new Object[] { - "* *", "* *", Character.valueOf('*'), "ingotObsidian" + "* *", "* *", Character.valueOf('*'), "ingotRefinedObsidian" })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianPaxel, 1), new Object[] { "XYZ", " T ", " T ", Character.valueOf('X'), ObsidianAxe, Character.valueOf('Y'), ObsidianPickaxe, Character.valueOf('Z'), ObsidianSpade, Character.valueOf('T'), Item.stick })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianPickaxe, 1), new Object[] { - "XXX", " T ", " T ", Character.valueOf('X'), "ingotObsidian", Character.valueOf('T'), Item.stick + "XXX", " T ", " T ", Character.valueOf('X'), "ingotRefinedObsidian", Character.valueOf('T'), Item.stick })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianAxe, 1), new Object[] { - "XX", "XT", " T", Character.valueOf('X'), "ingotObsidian", Character.valueOf('T'), Item.stick + "XX", "XT", " T", Character.valueOf('X'), "ingotRefinedObsidian", Character.valueOf('T'), Item.stick })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianSpade, 1), new Object[] { - "X", "T", "T", Character.valueOf('X'), "ingotObsidian", Character.valueOf('T'), Item.stick + "X", "T", "T", Character.valueOf('X'), "ingotRefinedObsidian", Character.valueOf('T'), Item.stick })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianHoe, 1), new Object[] { - "XX", " T", " T", Character.valueOf('X'), "ingotObsidian", Character.valueOf('T'), Item.stick + "XX", " T", " T", Character.valueOf('X'), "ingotRefinedObsidian", Character.valueOf('T'), Item.stick })); CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(ObsidianSword, 1), new Object[] { - "X", "X", "T", Character.valueOf('X'), "ingotObsidian", Character.valueOf('T'), Item.stick + "X", "X", "T", Character.valueOf('X'), "ingotRefinedObsidian", Character.valueOf('T'), Item.stick })); //Glowstone