Auto format code

This commit is contained in:
modmuss50 2017-06-28 20:54:12 +01:00
parent c0aab7f37a
commit 774fec221e
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
65 changed files with 100 additions and 125 deletions

View file

@ -76,7 +76,7 @@ public class TileLightningRod extends TilePowerAcceptor implements IWrenchable {
final float lightStrikeChance = (100F - chanceOfStrike) * 20F;
final float totalChance = lightStrikeChance * this.getLightningStrikeMultiplier() * (1.1F - weatherStrength);
if (this.world.rand.nextInt((int) Math.floor(totalChance)) == 0) {
if(world.getBlockState(pos.up()).getBlock() != ModBlocks.REFINED_IRON_FENCE){
if (world.getBlockState(pos.up()).getBlock() != ModBlocks.REFINED_IRON_FENCE) {
this.onStatusHoldTicks = 400;
return;
}

View file

@ -77,14 +77,14 @@ public class TileThermalGenerator extends TileBaseFluidGenerator implements ICon
this.getPos().getY() + direction.getFrontOffsetY(),
this.getPos().getZ() + direction.getFrontOffsetZ()))
.getBlock() == Blocks.LAVA) {
if (this.tryAddingEnergy(1)){
if (this.tryAddingEnergy(1)) {
this.lastOutput = this.world.getTotalWorldTime();
didRun = true;
}
}
}
if(didRun != isOn){
if (didRun != isOn) {
isOn = didRun;
world.setBlockState(pos, world.getBlockState(pos).withProperty(BlockThermalGenerator.ACTIVE, isOn));
}