From 52133b129d8b0b9c0610f5ff299602b0dd16dc9f Mon Sep 17 00:00:00 2001 From: Astrash Date: Mon, 30 Oct 2023 10:31:36 +1100 Subject: [PATCH] sphereCount -> blockCount --- .../java/com/dfsek/terra/addons/ore/ores/VanillaOre.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/addons/config-ore/src/main/java/com/dfsek/terra/addons/ore/ores/VanillaOre.java b/common/addons/config-ore/src/main/java/com/dfsek/terra/addons/ore/ores/VanillaOre.java index 1001b2c5c..05a9e4a92 100644 --- a/common/addons/config-ore/src/main/java/com/dfsek/terra/addons/ore/ores/VanillaOre.java +++ b/common/addons/config-ore/src/main/java/com/dfsek/terra/addons/ore/ores/VanillaOre.java @@ -114,7 +114,7 @@ public class VanillaOre implements Structure { int horizontalSize = (int) (2 * (Math.ceil(eighthSize) + outset)); int verticalSize = 2 * (2 + outset); - int sphereCount = 0; + int blockCount = 0; BitSet visited = new BitSet(horizontalSize * verticalSize * horizontalSize); // Generate a sphere at each point @@ -153,7 +153,7 @@ public class VanillaOre implements Structure { BlockType block = world.getBlockState(xi, yi, zi).getBlockType(); if(shouldPlace(getReplaceable(), block, exposed, random, world, xi, yi, zi)) { world.setBlockState(xi, yi, zi, getMaterial(block), isApplyGravity()); - ++sphereCount; + ++blockCount; } } } @@ -165,7 +165,7 @@ public class VanillaOre implements Structure { } } - return sphereCount > 0; + return blockCount > 0; } public BlockState getMaterial(BlockType replace) { return materials.getOrDefault(replace, material);