From a6e1005132117ef69de864b7d786d766bc1bd75f Mon Sep 17 00:00:00 2001 From: syeyoung Date: Mon, 8 Mar 2021 13:27:46 +0900 Subject: fix smol bug 2 --- .../java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoom.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/kr/syeyoung') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoom.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoom.java index def02c91..208d25b6 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoom.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoom.java @@ -9,6 +9,7 @@ import kr.syeyoung.dungeonsguide.dungeon.events.DungeonStateChangeEvent; import kr.syeyoung.dungeonsguide.dungeon.mechanics.DungeonMechanic; import kr.syeyoung.dungeonsguide.dungeon.mechanics.DungeonRoomDoor; import kr.syeyoung.dungeonsguide.pathfinding.NodeProcessorDungeonRoom; +import kr.syeyoung.dungeonsguide.roomedit.EditingContext; import kr.syeyoung.dungeonsguide.roomprocessor.ProcessorFactory; import kr.syeyoung.dungeonsguide.roomprocessor.RoomProcessor; import kr.syeyoung.dungeonsguide.roomprocessor.RoomProcessorGenerator; @@ -49,7 +50,7 @@ public class DungeonRoom { private Map cached = null; public Map getMechanics() { - if (cached == null) { + if (cached == null || EditingContext.getEditingContext() != null) { cached = new HashMap(dungeonRoomInfo.getMechanics()); int index = 0; for (DungeonDoor door : doors) { -- cgit