aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/rosegoldaddons/features/HardstoneAura.java
diff options
context:
space:
mode:
authorRoseGoldIsntGay <yoavkau@gmail.com>2022-01-13 18:50:22 +0200
committerRoseGoldIsntGay <yoavkau@gmail.com>2022-01-13 18:50:22 +0200
commit0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693 (patch)
tree6d99f8779e4cde0aa3d8d40f8501b7e3933b5809 /src/main/java/rosegoldaddons/features/HardstoneAura.java
parentf06690a35ed7040db0aed7cec1f8a392eeffa3e7 (diff)
downloadRGA-0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693.tar.gz
RGA-0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693.tar.bz2
RGA-0acbdcf7cd4ee78544b8cf7fbf8fa48dd395f693.zip
2.5.1
Diffstat (limited to 'src/main/java/rosegoldaddons/features/HardstoneAura.java')
-rw-r--r--src/main/java/rosegoldaddons/features/HardstoneAura.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/rosegoldaddons/features/HardstoneAura.java b/src/main/java/rosegoldaddons/features/HardstoneAura.java
index ff4ee3c..da76ff2 100644
--- a/src/main/java/rosegoldaddons/features/HardstoneAura.java
+++ b/src/main/java/rosegoldaddons/features/HardstoneAura.java
@@ -139,6 +139,11 @@ public class HardstoneAura {
if (blockState.getBlock() == Blocks.stone && !broken.contains(blockPos)) {
stones.add(new Vec3(blockPos.getX() + 0.5, blockPos.getY(), blockPos.getZ() + 0.5));
}
+ if(Main.configFile.includeOres) {
+ if (blockState.getBlock() == Blocks.coal_ore || blockState.getBlock() == Blocks.diamond_ore || blockState.getBlock() == Blocks.gold_ore || blockState.getBlock() == Blocks.redstone_ore || blockState.getBlock() == Blocks.iron_ore || blockState.getBlock() == Blocks.lapis_ore || blockState.getBlock() == Blocks.emerald_ore || blockState.getBlock() == Blocks.netherrack && !broken.contains(blockPos)) {
+ stones.add(new Vec3(blockPos.getX() + 0.5, blockPos.getY(), blockPos.getZ() + 0.5));
+ }
+ }
}
}
double smallest = 9999;