From e29cf96c38fbed319f7c9e03e381d1e7f20db021 Mon Sep 17 00:00:00 2001 From: DoKM Date: Mon, 19 Jul 2021 11:03:18 +0200 Subject: add titanium alert air check toggle --- .../moulberry/notenoughupdates/miscfeatures/MiningStuff.java | 2 +- .../notenoughupdates/options/seperateSections/Mining.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java index c6d0f008..040101dd 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java @@ -52,7 +52,7 @@ public class MiningStuff { IBlockState existingBlock = Minecraft.getMinecraft().theWorld.getBlockState(pos); if(existingBlock == null) return; if(existingBlock.getBlock() == Blocks.stone && existingBlock.getValue(BlockStone.VARIANT) == BlockStone.EnumType.DIORITE_SMOOTH) return; - if(!checkIfAnyIsAir(getAttachedBlocks(pos))) return; + if(!checkIfAnyIsAir(getAttachedBlocks(pos)) && NotEnoughUpdates.INSTANCE.config.mining.titaniumAlertMustBeVisible) return; BlockPos player = Minecraft.getMinecraft().thePlayer.getPosition(); double distSq = pos.distanceSq(player); diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java index b7326ee3..8e2f60d8 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java @@ -154,6 +154,14 @@ public class Mining { @ConfigEditorBoolean public boolean titaniumAlert = true; + @Expose + @ConfigOption( + name = "Titanium must touch air", + desc = "Only show an alert if the Titanium touches air. (kinda sus)" + ) + @ConfigEditorBoolean + public boolean titaniumAlertMustBeVisible = false; + @Expose @ConfigOption( -- cgit