aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/impl
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-24 02:29:02 +0900
committersyeyoung <cyong06@naver.com>2021-02-24 02:29:02 +0900
commitd9ebe7b909ab386f21ec15f2ab5e2c58a71391f9 (patch)
treef7ecbbbbf687519689f1bea33aa6a07c4b51571a /src/main/java/kr/syeyoung/dungeonsguide/features/impl
parent32317d3372448fd9c719cb96ba60c0b9dde1303c (diff)
downloadSkyblock-Dungeons-Guide-d9ebe7b909ab386f21ec15f2ab5e2c58a71391f9.tar.gz
Skyblock-Dungeons-Guide-d9ebe7b909ab386f21ec15f2ab5e2c58a71391f9.tar.bz2
Skyblock-Dungeons-Guide-d9ebe7b909ab386f21ec15f2ab5e2c58a71391f9.zip
water solver 3.0
creeper solver 2.0 terminal solver 1.1
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/SelectInOrderSolutionProvider.java4
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureMechanicBrowse.java1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/SelectInOrderSolutionProvider.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/SelectInOrderSolutionProvider.java
index d03f71fa..f6fc76e7 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/SelectInOrderSolutionProvider.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/SelectInOrderSolutionProvider.java
@@ -19,7 +19,7 @@ public class SelectInOrderSolutionProvider implements TerminalSolutionProvider {
for (Slot inventorySlot : chest.inventorySlots) {
if (inventorySlot.inventory != chest.getLowerChestInventory()) continue;
if (inventorySlot.getHasStack() && inventorySlot.getStack() != null && inventorySlot.getStack().getItem() == Item.getItemFromBlock(Blocks.stained_glass_pane)
- && inventorySlot.getStack().getItemDamage() == EnumDyeColor.LIME.getMetadata()) {
+ && inventorySlot.getStack().getItemDamage() == EnumDyeColor.RED.getMetadata()) {
if (inventorySlot.getStack().stackSize < lowest) {
lowest = inventorySlot.getStack().stackSize;
slotLowest = inventorySlot;
@@ -33,7 +33,7 @@ public class SelectInOrderSolutionProvider implements TerminalSolutionProvider {
for (Slot inventorySlot : chest.inventorySlots) {
if (inventorySlot.inventory != chest.getLowerChestInventory()) continue;
if (inventorySlot.getHasStack() && inventorySlot.getStack() != null && inventorySlot.getStack().getItem() == Item.getItemFromBlock(Blocks.stained_glass_pane)
- && inventorySlot.getStack().getItemDamage() == EnumDyeColor.LIME.getMetadata()) {
+ && inventorySlot.getStack().getItemDamage() == EnumDyeColor.RED.getMetadata()) {
if (inventorySlot.getStack().stackSize == lowest + 1) {
next = inventorySlot;
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureMechanicBrowse.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureMechanicBrowse.java
index e7aa9421..c1793eec 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureMechanicBrowse.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/FeatureMechanicBrowse.java
@@ -396,6 +396,7 @@ public class FeatureMechanicBrowse extends GuiFeature implements GuiPreRenderLis
if (dungeonRoom == null) return;
if (!(dungeonRoom.getRoomProcessor() instanceof GeneralRoomProcessor)) return;
if (selected != -1) {
+ if (sortedMechanics.size() <= selected) return;;
((DungeonMechanic)sortedMechanics.get(selected)).highlight(new Color(0,255,255,50), sortedMechanicsName.get(selected) +" ("+(((DungeonMechanic)
sortedMechanics.get(selected)).getRepresentingPoint() != null ?
String.format("%.1f", MathHelper.sqrt_double(((DungeonMechanic) sortedMechanics.get(selected)).getRepresentingPoint().getBlockPos(dungeonRoom).distanceSq(Minecraft.getMinecraft().thePlayer.getPosition()))) : "")