diff --git a/src/main/java/mekanism/api/gas/GasNetwork.java b/src/main/java/mekanism/api/gas/GasNetwork.java index 341df9464..f1b7941a1 100644 --- a/src/main/java/mekanism/api/gas/GasNetwork.java +++ b/src/main/java/mekanism/api/gas/GasNetwork.java @@ -421,31 +421,6 @@ public class GasNetwork extends DynamicNetwork return true; } - @Override - protected GasNetwork create(IGridTransmitter... varTransmitters) - { - GasNetwork network = new GasNetwork(varTransmitters); - network.refGas = refGas; - - if(gasStored != null) - { - if(network.gasStored == null) - { - network.gasStored = gasStored; - } - else { - network.gasStored.amount += gasStored.amount; - } - } - - network.gasScale = network.getScale(); - gasScale = 0; - refGas = null; - gasStored = null; - - return network; - } - @Override protected GasNetwork create(Collection> collection) { @@ -464,16 +439,10 @@ public class GasNetwork extends DynamicNetwork } network.gasScale = network.getScale(); - + network.updateCapacity(); return network; } - @Override - protected GasNetwork create(Set networks) - { - return new GasNetwork(networks); - } - @Override public TransmissionType getTransmissionType() { diff --git a/src/main/java/mekanism/api/transmitters/DynamicNetwork.java b/src/main/java/mekanism/api/transmitters/DynamicNetwork.java index 2b6ca7068..d5d77dcda 100644 --- a/src/main/java/mekanism/api/transmitters/DynamicNetwork.java +++ b/src/main/java/mekanism/api/transmitters/DynamicNetwork.java @@ -42,12 +42,8 @@ public abstract class DynamicNetwork> implemen protected boolean needsUpdate = false; - protected abstract ITransmitterNetwork create(IGridTransmitter... varTransmitters); - protected abstract ITransmitterNetwork create(Collection> collection); - protected abstract ITransmitterNetwork create(Set networks); - protected void clearAround(IGridTransmitter transmitter) { for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) diff --git a/src/main/java/mekanism/client/render/RenderPartTransmitter.java b/src/main/java/mekanism/client/render/RenderPartTransmitter.java index f8a9d71ad..f348fd856 100644 --- a/src/main/java/mekanism/client/render/RenderPartTransmitter.java +++ b/src/main/java/mekanism/client/render/RenderPartTransmitter.java @@ -237,7 +237,7 @@ public class RenderPartTransmitter implements IIconSelfRegister return; } - GL11.glPushMatrix(); + push(); CCRenderState.reset(); CCRenderState.useNormals = true; CCRenderState.startDrawing(); @@ -256,7 +256,7 @@ public class RenderPartTransmitter implements IIconSelfRegister MekanismRenderer.disableCullFace(); MekanismRenderer.glowOff(); - GL11.glPopMatrix(); + pop(); } public void renderContents(PartMechanicalPipe pipe, Vector3 pos) @@ -468,7 +468,7 @@ public class RenderPartTransmitter implements IIconSelfRegister return; } - GL11.glPushMatrix(); + push(); CCRenderState.reset(); CCRenderState.useNormals = true; CCRenderState.startDrawing(); @@ -486,7 +486,7 @@ public class RenderPartTransmitter implements IIconSelfRegister MekanismRenderer.disableCullFace(); MekanismRenderer.glowOff(); - GL11.glPopMatrix(); + pop(); } public void renderStatic(PartSidedPipe transmitter) diff --git a/src/main/java/mekanism/common/EnergyNetwork.java b/src/main/java/mekanism/common/EnergyNetwork.java index f34ca3be0..594ff87fa 100644 --- a/src/main/java/mekanism/common/EnergyNetwork.java +++ b/src/main/java/mekanism/common/EnergyNetwork.java @@ -429,18 +429,6 @@ public class EnergyNetwork extends DynamicNetwork return jouleBufferLastTick * 20; } - @Override - protected EnergyNetwork create(IGridTransmitter... varTransmitters) - { - EnergyNetwork network = new EnergyNetwork(varTransmitters); - network.clientEnergyScale = clientEnergyScale; - network.jouleBufferLastTick = jouleBufferLastTick; - network.joulesTransmitted = joulesTransmitted; - network.lastPowerScale = lastPowerScale; - network.electricityStored += electricityStored; - return network; - } - @Override protected EnergyNetwork create(Collection> collection) { @@ -454,12 +442,6 @@ public class EnergyNetwork extends DynamicNetwork return network; } - @Override - protected EnergyNetwork create(Set networks) - { - return new EnergyNetwork(networks); - } - @Override public TransmissionType getTransmissionType() { diff --git a/src/main/java/mekanism/common/FluidNetwork.java b/src/main/java/mekanism/common/FluidNetwork.java index 596e0fea2..20677a0c6 100644 --- a/src/main/java/mekanism/common/FluidNetwork.java +++ b/src/main/java/mekanism/common/FluidNetwork.java @@ -405,32 +405,6 @@ public class FluidNetwork extends DynamicNetwork return "[FluidNetwork] " + transmitters.size() + " transmitters, " + possibleAcceptors.size() + " acceptors."; } - @Override - protected FluidNetwork create(IGridTransmitter... varTransmitters) - { - FluidNetwork network = new FluidNetwork(varTransmitters); - network.refFluid = refFluid; - - if(fluidStored != null) - { - if(network.fluidStored == null) - { - network.fluidStored = fluidStored; - } - else { - network.fluidStored.amount += fluidStored.amount; - } - } - - network.fluidScale = network.getScale(); - - fluidScale = 0; - refFluid = null; - fluidStored = null; - - return network; - } - @Override protected FluidNetwork create(Collection> collection) { @@ -480,12 +454,6 @@ public class FluidNetwork extends DynamicNetwork return true; } - @Override - protected FluidNetwork create(Set networks) - { - return new FluidNetwork(networks); - } - @Override public TransmissionType getTransmissionType() { diff --git a/src/main/java/mekanism/common/InventoryNetwork.java b/src/main/java/mekanism/common/InventoryNetwork.java index f0754227e..c71771f13 100644 --- a/src/main/java/mekanism/common/InventoryNetwork.java +++ b/src/main/java/mekanism/common/InventoryNetwork.java @@ -157,24 +157,12 @@ public class InventoryNetwork extends DynamicNetwork... varTransmitters) - { - return new InventoryNetwork(varTransmitters); - } - @Override protected InventoryNetwork create(Collection> collection) { return new InventoryNetwork(collection); } - @Override - protected InventoryNetwork create(Set networks) - { - return new InventoryNetwork(networks); - } - @Override public TransmissionType getTransmissionType() { diff --git a/src/main/java/mekanism/common/tile/TileEntityChemicalDissolutionChamber.java b/src/main/java/mekanism/common/tile/TileEntityChemicalDissolutionChamber.java index f06cf915b..74a6e9815 100644 --- a/src/main/java/mekanism/common/tile/TileEntityChemicalDissolutionChamber.java +++ b/src/main/java/mekanism/common/tile/TileEntityChemicalDissolutionChamber.java @@ -59,7 +59,7 @@ public class TileEntityChemicalDissolutionChamber extends TileEntityElectricBloc public final double ENERGY_USAGE = usage.chemicalDissolutionChamberUsage; - public TileComponentUpgrade upgradeComponent = new TileComponentUpgrade(this, 3); + public TileComponentUpgrade upgradeComponent = new TileComponentUpgrade(this, 4); public RedstoneControl controlType = RedstoneControl.DISABLED; diff --git a/src/main/java/mekanism/generators/common/FusionReactor.java b/src/main/java/mekanism/generators/common/FusionReactor.java index 423bb9b56..e725fb552 100644 --- a/src/main/java/mekanism/generators/common/FusionReactor.java +++ b/src/main/java/mekanism/generators/common/FusionReactor.java @@ -110,7 +110,12 @@ public class FusionReactor implements IFusionReactor if(burning) { injectFuel(); - neutronFlux(burnFuel()); + int fuelBurned = burnFuel(); + neutronFlux(fuelBurned); + if(fuelBurned == 0) + { + burning = false; + } } } else { diff --git a/src/main/java/mekanism/generators/common/tile/reactor/TileEntityReactorPort.java b/src/main/java/mekanism/generators/common/tile/reactor/TileEntityReactorPort.java index 3c82fcb09..5ca402789 100644 --- a/src/main/java/mekanism/generators/common/tile/reactor/TileEntityReactorPort.java +++ b/src/main/java/mekanism/generators/common/tile/reactor/TileEntityReactorPort.java @@ -39,7 +39,7 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl { if(changed) { - worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType()); + worldObj.func_147453_f(xCoord, yCoord, zCoord, getBlockType()); } super.onUpdate();