Fix ports not connecting and being able to reignite a hot reactor without the proper procedure.

This commit is contained in:
Ben Spiers committed 2014-08-17 04:20:14 +01:00
1 parent 090bd9b9c3
commit c706d2ebb1
2 files changed
+7 -2

No files matched your search

@@ -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 {
@@ -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();