From df5c87a53429e94bba42132d2dcf5537783a457b Mon Sep 17 00:00:00 2001 From: DoKM Date: Tue, 20 Jul 2021 14:29:34 +0200 Subject: Add only show titanium notifications if quest isnt done --- .../moulberry/notenoughupdates/miscfeatures/MiningStuff.java | 9 ++++++++- 1 file changed, 8 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 040101dd..cfd97d3f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java @@ -24,6 +24,8 @@ import net.minecraftforge.client.event.RenderWorldLastEvent; import net.minecraftforge.event.world.WorldEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; +import java.util.Map; + public class MiningStuff { private static BlockPos overlayLoc = null; @@ -45,8 +47,13 @@ public class MiningStuff { SBInfo.getInstance().getLocation().startsWith("mining_") && state.getBlock() == Blocks.stone && state.getValue(BlockStone.VARIANT) == BlockStone.EnumType.DIORITE_SMOOTH) { - for(String s : MiningOverlay.commissionProgress.keySet()) { + + for(Map.Entry entry : MiningOverlay.commissionProgress.entrySet()) { + String s = entry.getKey(); if(s.contains("Titanium")) { + if(entry.getValue() == 1f){ + return; + } BlockPos pos = packetIn.getBlockPosition(); IBlockState existingBlock = Minecraft.getMinecraft().theWorld.getBlockState(pos); -- cgit