aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-09-09 05:34:11 +1000
committerGitHub <noreply@github.com>2024-09-08 21:34:11 +0200
commit6775517198f44a62cd78637dbf7d6a93ced14acb (patch)
tree61a79334f982a2802b8dbdd3e66db257a75a3bf1
parent9793edbf11c8f64828547bc5a6b1f997b46aeb1b (diff)
downloadnotenoughupdates-6775517198f44a62cd78637dbf7d6a93ced14acb.tar.gz
notenoughupdates-6775517198f44a62cd78637dbf7d6a93ced14acb.tar.bz2
notenoughupdates-6775517198f44a62cd78637dbf7d6a93ced14acb.zip
Fix dungeon npc profit showing in profile run view (#1352)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DungeonNpcProfitOverlay.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DungeonNpcProfitOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DungeonNpcProfitOverlay.java
index e9ba9489..0a76e4e3 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DungeonNpcProfitOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DungeonNpcProfitOverlay.java
@@ -38,6 +38,7 @@ import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.gui.inventory.GuiChest;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
import net.minecraft.inventory.ContainerChest;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
@@ -145,6 +146,11 @@ public class DungeonNpcProfitOverlay {
chestProfits.clear();
return;
}
+ ItemStack stack = guiChest.inventorySlots.inventorySlots.get(11).getStack();
+ if (stack != null && stack.getItem() == Items.filled_map) {
+ chestProfits.clear();
+ return;
+ }
render(guiChest);
}