From 7d36d73377b62af702e6f4116661c1ce0c1eb0cf Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 5 Aug 2020 18:28:08 -0400 Subject: [PATCH] v0.8.2: fixed crashes caused by wandmaker spawning logic checking traps --- .../shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java index d60b9a7ee..59f670165 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java @@ -292,7 +292,7 @@ public class Wandmaker extends NPC { validPos = false; } } - if (Dungeon.level.traps.get(npc.pos) != null){ + if (level.traps.get(npc.pos) != null){ validPos = false; } } while (!validPos);