aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-03-08 13:27:46 +0900
committersyeyoung <cyong06@naver.com>2021-03-08 13:27:46 +0900
commita6e1005132117ef69de864b7d786d766bc1bd75f (patch)
tree4bfd3c69e6ba79dddc12bbae1f4a9a8a4e7a5c11 /src/main/java/kr/syeyoung
parenta8476a8318343c664058da35ee7c94542b167954 (diff)
downloadSkyblock-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')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoom.java3
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) {