aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java/kr/syeyoung/dungeonsguide
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-01-22 18:43:52 -0800
committerWalker Selby <git@walkerselby.com>2023-01-22 18:43:52 -0800
commitd653c3ead118de36dcf82b2a40a86383240687f3 (patch)
treef569b356270e5123f97ab0ad25b6bef766905eb2 /mod/src/main/java/kr/syeyoung/dungeonsguide
parent868aa159a3c127466dc014d3e646ba8f55a36caf (diff)
downloadSkyblock-Dungeons-Guide-d653c3ead118de36dcf82b2a40a86383240687f3.tar.gz
Skyblock-Dungeons-Guide-d653c3ead118de36dcf82b2a40a86383240687f3.tar.bz2
Skyblock-Dungeons-Guide-d653c3ead118de36dcf82b2a40a86383240687f3.zip
Rename bpos to blockPos for clarity
Fix typos and grammar
Diffstat (limited to 'mod/src/main/java/kr/syeyoung/dungeonsguide')
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonDummy.java2
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonNPC.java2
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayDoor.java2
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java8
4 files changed, 7 insertions, 7 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonDummy.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonDummy.java
index ef83e1ee..31dfcf58 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonDummy.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonDummy.java
@@ -45,7 +45,7 @@ public class DungeonDummy implements DungeonMechanic {
@Override
public Set<AbstractAction> getAction(String state, DungeonRoom dungeonRoom) {
-// if (!"navigate".equalsIgnoreCase(state)) throw new IllegalArgumentException(state+" is not valid state for secret");
+// if (!"navigate".equalsIgnoreCase(state)) throw new IllegalArgumentException(state+" is not a valid state for secret");
Set<AbstractAction> base;
Set<AbstractAction> preRequisites = base = new HashSet<AbstractAction>();
if (state.equalsIgnoreCase("navigate")){
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonNPC.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonNPC.java
index 702c7fc1..d9def6a8 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonNPC.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonNPC.java
@@ -49,7 +49,7 @@ public class DungeonNPC implements DungeonMechanic {
@Override
public Set<AbstractAction> getAction(String state, DungeonRoom dungeonRoom) {
if (!"navigate".equalsIgnoreCase(state))
- throw new IllegalArgumentException(state + " is not valid state for secret");
+ throw new IllegalArgumentException(state + " is not a valid state for secret");
Set<AbstractAction> base = new HashSet<>();
ActionInteract actionClick = new ActionInteract(secretPoint);
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayDoor.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayDoor.java
index 7299c11f..e6fdcc96 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayDoor.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonOnewayDoor.java
@@ -58,7 +58,7 @@ public class DungeonOnewayDoor implements DungeonMechanic, RouteBlocker {
}
return base;
}
- if (!("open".equalsIgnoreCase(state))) throw new IllegalArgumentException(state+" is not valid state for door");
+ if (!("open".equalsIgnoreCase(state))) throw new IllegalArgumentException(state+" is not a valid state for door");
if (!isBlocking(dungeonRoom)) {
return Collections.emptySet();
}
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java
index f53a0f5a..38da357c 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonSecret.java
@@ -81,8 +81,8 @@ public class DungeonSecret implements DungeonMechanic {
Vec3 vec3 = pos.subtract(player).normalize();
for (int i = 0; i < player.distanceTo(pos); i++) {
Vec3 vec = player.addVector(vec3.xCoord * i, vec3.yCoord * i, vec3.zCoord * i);
- BlockPos bpos = new BlockPos(vec);
- IBlockState blockState = DungeonsGuide.getDungeonsGuide().getBlockCache().getBlockState(bpos);
+ BlockPos blockPos = new BlockPos(vec);
+ IBlockState blockState = DungeonsGuide.getDungeonsGuide().getBlockCache().getBlockState(blockPos);
if (!NodeProcessorDungeonRoom.isValidBlock(blockState))
return;
}
@@ -139,8 +139,8 @@ public class DungeonSecret implements DungeonMechanic {
Vec3 vec3 = pos.subtract(player).normalize();
for (int i = 0; i < player.distanceTo(pos); i++) {
Vec3 vec = player.addVector(vec3.xCoord * i, vec3.yCoord * i, vec3.zCoord * i);
- BlockPos bpos = new BlockPos(vec);
- IBlockState blockState = DungeonsGuide.getDungeonsGuide().getBlockCache().getBlockState(bpos);
+ BlockPos blockPos = new BlockPos(vec);
+ IBlockState blockState = DungeonsGuide.getDungeonsGuide().getBlockCache().getBlockState(blockPos);
if (!NodeProcessorDungeonRoom.isValidBlock(blockState))
return SecretStatus.NOT_SURE;
}