From 740c141be9abb13b7b54389a408b082570945153 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 27 Feb 2021 00:55:04 +0900 Subject: massive refactor --- .../kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java index 05a2a7c1..f2c93624 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java @@ -7,7 +7,6 @@ import kr.syeyoung.dungeonsguide.dungeon.data.OffsetPoint; import kr.syeyoung.dungeonsguide.dungeon.mechanics.predicates.PredicateBat; import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoom; import kr.syeyoung.dungeonsguide.pathfinding.NodeProcessorDungeonRoom; -import kr.syeyoung.dungeonsguide.roomedit.panes.SecretEditPane; import kr.syeyoung.dungeonsguide.utils.RenderUtils; import lombok.AllArgsConstructor; import lombok.Data; @@ -18,8 +17,6 @@ import net.minecraft.init.Blocks; import net.minecraft.tileentity.TileEntityChest; import net.minecraft.util.BlockPos; import net.minecraft.util.Vec3; -import net.minecraft.util.Vec3i; -import net.minecraft.util.Vector3d; import java.awt.*; import java.util.*; @@ -92,7 +89,7 @@ public class DungeonSecret implements DungeonMechanic { if (state.equalsIgnoreCase("navigate")) { Set base; Set preRequisites = base = new HashSet(); - ActionMoveNearestAir actionMove = new ActionMoveNearestAir(getRepresentingPoint()); + ActionMoveNearestAir actionMove = new ActionMoveNearestAir(getRepresentingPoint(dungeonRoom)); preRequisites.add(actionMove); preRequisites = actionMove.getPreRequisite(); for (String str : preRequisite) { @@ -177,7 +174,7 @@ public class DungeonSecret implements DungeonMechanic { return Sets.newHashSet("found"/*, "definitely_not", "not_sure", "created", "error"*/); } @Override - public OffsetPoint getRepresentingPoint() { + public OffsetPoint getRepresentingPoint(DungeonRoom dungeonRoom) { return secretPoint; } } -- cgit