aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-07-20 14:29:34 +0200
committerDoKM <mcazzyman@gmail.com>2021-07-20 14:29:34 +0200
commitdf5c87a53429e94bba42132d2dcf5537783a457b (patch)
treec9d1a571f4be4a2416736764f9829955311c1f86
parent136e649be73268b20c61f5998b5cc83dcbd55b1b (diff)
downloadNotEnoughUpdates-df5c87a53429e94bba42132d2dcf5537783a457b.tar.gz
NotEnoughUpdates-df5c87a53429e94bba42132d2dcf5537783a457b.tar.bz2
NotEnoughUpdates-df5c87a53429e94bba42132d2dcf5537783a457b.zip
Add only show titanium notifications if quest isnt done
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MiningStuff.java9
1 files changed, 8 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 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<String, Float> 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);