diff --git a/src/main/java/com/hbm/blocks/machine/rbmk/RBMKDebrisBurning.java b/src/main/java/com/hbm/blocks/machine/rbmk/RBMKDebrisBurning.java index a868d493f..22a55a449 100644 --- a/src/main/java/com/hbm/blocks/machine/rbmk/RBMKDebrisBurning.java +++ b/src/main/java/com/hbm/blocks/machine/rbmk/RBMKDebrisBurning.java @@ -37,15 +37,14 @@ public class RBMKDebrisBurning extends RBMKDebris { } ForgeDirection dir = ForgeDirection.getOrientation(rand.nextInt(6)); + Block block = world.getBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ); - if(rand.nextInt(10) == 0 && world.getBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ) == Blocks.air) { + if(rand.nextInt(10) == 0 && block == Blocks.air) { world.setBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ, ModBlocks.gas_meltdown); } - Block block = world.getBlock(x, y + 1, z); - - //Foam helps stop the fire. - int chance = block == ModBlocks.foam_layer || block == ModBlocks.block_foam ? 20 : 100; + //Foam helps stop the fire; ~5+ minutes to extinguish with one side exposed to foam. + int chance = block == ModBlocks.foam_layer || block == ModBlocks.block_foam ? 10 : 100; if(rand.nextInt(chance) == 0) { world.setBlock(x, y, z, ModBlocks.pribris); diff --git a/src/main/java/com/hbm/blocks/machine/rbmk/RBMKDebrisRadiating.java b/src/main/java/com/hbm/blocks/machine/rbmk/RBMKDebrisRadiating.java index 60eee96ad..94363af26 100644 --- a/src/main/java/com/hbm/blocks/machine/rbmk/RBMKDebrisRadiating.java +++ b/src/main/java/com/hbm/blocks/machine/rbmk/RBMKDebrisRadiating.java @@ -50,14 +50,13 @@ public class RBMKDebrisRadiating extends RBMKDebrisBurning { } ForgeDirection dir = ForgeDirection.getOrientation(rand.nextInt(6)); - - if(rand.nextInt(10) == 0 && world.getBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ) == Blocks.air) { + Block block = world.getBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ); + + if(rand.nextInt(10) == 0 && block == Blocks.air) { world.setBlock(x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ, ModBlocks.gas_meltdown); } - Block block = world.getBlock(x, y + 1, z); - - //Boron sand helps stop the fission reaction. + //Boron sand helps stop the fission reaction; ~5+ minutes to halt with one side exposed to boron sand. int chance = block == ModBlocks.sand_boron_layer || block == ModBlocks.sand_boron ? 50 : 1000; if(rand.nextInt(chance) == 0) {