Auto format code
This commit is contained in:
parent
c0aab7f37a
commit
774fec221e
65 changed files with 100 additions and 125 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue