A few minor cleanups
This commit is contained in:
parent
5fd1217837
commit
607eb31316
3 changed files with 5 additions and 15 deletions
|
@ -71,7 +71,8 @@ public class TileEntityChargepad extends TileEntityNoisyElectricBlock
|
|||
|
||||
robit.setEnergy(robit.getEnergy() + toGive);
|
||||
setEnergy(getEnergy() - toGive);
|
||||
} else if(entity instanceof EntityPlayer)
|
||||
}
|
||||
else if(entity instanceof EntityPlayer)
|
||||
{
|
||||
EntityPlayer player = (EntityPlayer) entity;
|
||||
|
||||
|
|
|
@ -313,8 +313,6 @@ public class FusionReactor implements IFusionReactor
|
|||
{
|
||||
updatedThisTick = true;
|
||||
|
||||
Mekanism.logger.info("Attempting to form multiblock");
|
||||
|
||||
Coord4D controllerPosition = Coord4D.get(controller);
|
||||
Coord4D centreOfReactor = controllerPosition.getFromSide(ForgeDirection.DOWN, 2);
|
||||
|
||||
|
@ -322,32 +320,24 @@ public class FusionReactor implements IFusionReactor
|
|||
|
||||
reactorBlocks.add(controller);
|
||||
|
||||
Mekanism.logger.info("Centre at " + centreOfReactor.toString());
|
||||
if(!createFrame(centreOfReactor))
|
||||
{
|
||||
unformMultiblock();
|
||||
Mekanism.logger.info("Reactor failed: Frame not complete.");
|
||||
return;
|
||||
}
|
||||
|
||||
Mekanism.logger.info("Frame valid");
|
||||
if(!addSides(centreOfReactor))
|
||||
{
|
||||
unformMultiblock();
|
||||
Mekanism.logger.info("Reactor failed: Sides not complete.");
|
||||
return;
|
||||
}
|
||||
|
||||
Mekanism.logger.info("Side Blocks Valid");
|
||||
if(!centreIsClear(centreOfReactor))
|
||||
{
|
||||
unformMultiblock();
|
||||
Mekanism.logger.info("Blocks in chamber.");
|
||||
return;
|
||||
}
|
||||
|
||||
Mekanism.logger.info("Centre is clear");
|
||||
|
||||
formed = true;
|
||||
|
||||
if(!controller.getWorldObj().isRemote)
|
||||
|
|
|
@ -236,7 +236,6 @@ public class TileEntityReactorController extends TileEntityReactorBlock implemen
|
|||
tritiumTank.setGas(new GasStack(GasRegistry.getGas("tritium"), dataStream.readInt()));
|
||||
waterTank.setFluid(new FluidStack(FluidRegistry.getFluid("water"), dataStream.readInt()));
|
||||
steamTank.setFluid(new FluidStack(FluidRegistry.getFluid("steam"), dataStream.readInt()));
|
||||
|
||||
}
|
||||
else if(getReactor() != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue