aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-08-10 19:36:31 +0200
committerDoKM <mcazzyman@gmail.com>2021-08-10 19:36:31 +0200
commit7f703f867435734b892e5a36b3314ee315d8887e (patch)
tree33a1af05a9ffdd0edd3e48922aa0ab242acc9ed0 /src/main/java
parent4993d127348f00bafd73fb0fe5b8cc6a0c2346d1 (diff)
downloadNotEnoughUpdates-7f703f867435734b892e5a36b3314ee315d8887e.tar.gz
NotEnoughUpdates-7f703f867435734b892e5a36b3314ee315d8887e.tar.bz2
NotEnoughUpdates-7f703f867435734b892e5a36b3314ee315d8887e.zip
Fix dungeon map appearing in boss room while holding bow
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonMap.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonMap.java b/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonMap.java
index 01b27f3d..658f72df 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonMap.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/dungeons/DungeonMap.java
@@ -22,6 +22,7 @@ import net.minecraft.client.shader.Shader;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
+import net.minecraft.item.Item;
import net.minecraft.item.ItemMap;
import net.minecraft.item.ItemStack;
import net.minecraft.scoreboard.Score;
@@ -1516,6 +1517,10 @@ public class DungeonMap {
renderMap(pos.getAbsX(scaledResolution, size/2)+size/2, pos.getAbsY(scaledResolution, size/2)+size/2,
colourMap, decorations, roomSizeBlocks, actualPlayers, true, event.partialTicks);
Utils.pushGuiScale(-1);
+ } else if(stack != null && Item.getIdFromItem(stack.getItem()) == 399){
+ //This should clear the map if you're in the dungeon boss room
+ //so when you're holding a bow it doesnt show the map anymore
+ this.colourMap = null;
}
}
}