diff options
author | syeyoung <cyong06@naver.com> | 2021-03-08 13:27:46 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-03-08 13:27:46 +0900 |
commit | a6e1005132117ef69de864b7d786d766bc1bd75f (patch) | |
tree | 4bfd3c69e6ba79dddc12bbae1f4a9a8a4e7a5c11 /src/main/java/kr/syeyoung/dungeonsguide | |
parent | a8476a8318343c664058da35ee7c94542b167954 (diff) | |
download | Skyblock-Dungeons-Guide-a6e1005132117ef69de864b7d786d766bc1bd75f.tar.gz Skyblock-Dungeons-Guide-a6e1005132117ef69de864b7d786d766bc1bd75f.tar.bz2 Skyblock-Dungeons-Guide-a6e1005132117ef69de864b7d786d766bc1bd75f.zip |
fix smol bug 2
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoom.java | 3 |
1 files changed, 2 insertions, 1 deletions
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<String, DungeonMechanic> cached = null; public Map<String, DungeonMechanic> getMechanics() { - if (cached == null) { + if (cached == null || EditingContext.getEditingContext() != null) { cached = new HashMap<String, DungeonMechanic>(dungeonRoomInfo.getMechanics()); int index = 0; for (DungeonDoor door : doors) { |