From ff817d0a37b907ff1f5132b04e737413b020ecd1 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Mon, 14 Dec 2020 22:13:59 +0900 Subject: null null --- .../kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonLever.java | 4 ++-- .../syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayLever.java | 4 ++-- .../dungeonsguide/dungeon/mechanics/DungeonPressurePlate.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonLever.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonLever.java index 79752eab..9965e11d 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonLever.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonLever.java @@ -18,7 +18,7 @@ import java.util.*; public class DungeonLever implements DungeonMechanic { private OffsetPoint leverPoint = new OffsetPoint(0,0,0); private List preRequisite = new ArrayList(); - private String triggering; + private String triggering = ""; @Override public Set getAction(String state, DungeonRoom dungeonRoom) { @@ -63,7 +63,7 @@ public class DungeonLever implements DungeonMechanic { @Override public String getCurrentState(DungeonRoom dungeonRoom) { - + if (triggering == null) triggering = "null"; DungeonMechanic mechanic = dungeonRoom.getDungeonRoomInfo().getMechanics().get(triggering); if (mechanic == null) { diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayLever.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayLever.java index 10a6ecab..87e2b44d 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayLever.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayLever.java @@ -15,7 +15,7 @@ import java.util.List; public class DungeonOnewayLever implements DungeonMechanic { private OffsetPoint leverPoint = new OffsetPoint(0,0,0); private List preRequisite = new ArrayList(); - private String triggering; + private String triggering = ""; @Override public Set getAction(String state, DungeonRoom dungeonRoom) { @@ -60,7 +60,7 @@ public class DungeonOnewayLever implements DungeonMechanic { @Override public String getCurrentState(DungeonRoom dungeonRoom) { - + if (triggering == null) triggering = "null"; DungeonMechanic mechanic = dungeonRoom.getDungeonRoomInfo().getMechanics().get(triggering); if (mechanic == null) { diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonPressurePlate.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonPressurePlate.java index a59b44b5..d36c8cd2 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonPressurePlate.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonPressurePlate.java @@ -15,7 +15,7 @@ import java.util.List; public class DungeonPressurePlate implements DungeonMechanic { private OffsetPoint platePoint = new OffsetPoint(0,0,0); private List preRequisite = new ArrayList(); - private String triggering; + private String triggering = ""; @Override public Set getAction(String state, DungeonRoom dungeonRoom) { @@ -62,7 +62,7 @@ public class DungeonPressurePlate implements DungeonMechanic { @Override public String getCurrentState(DungeonRoom dungeonRoom) { - + if (triggering == null) triggering = "null"; DungeonMechanic mechanic = dungeonRoom.getDungeonRoomInfo().getMechanics().get(triggering); if (mechanic == null) { -- cgit