diff options
author | DoKM <mcazzyman@gmail.com> | 2021-07-19 11:03:18 +0200 |
---|---|---|
committer | DoKM <mcazzyman@gmail.com> | 2021-07-19 11:03:18 +0200 |
commit | e29cf96c38fbed319f7c9e03e381d1e7f20db021 (patch) | |
tree | 69e7c1ced77e169c40a663f15b404b0d968452b6 /src/main/java/io | |
parent | e87527f9a1bba7bbc0ff82e5313466c9d47dc1ba (diff) | |
download | NotEnoughUpdates-e29cf96c38fbed319f7c9e03e381d1e7f20db021.tar.gz NotEnoughUpdates-e29cf96c38fbed319f7c9e03e381d1e7f20db021.tar.bz2 NotEnoughUpdates-e29cf96c38fbed319f7c9e03e381d1e7f20db021.zip |
add titanium alert air check toggle
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java | 2 | ||||
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java | 8 |
2 files changed, 9 insertions, 1 deletions
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(
|