diff options
author | syeyoung <cyong06@naver.com> | 2021-02-24 02:29:02 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-02-24 02:29:02 +0900 |
commit | d9ebe7b909ab386f21ec15f2ab5e2c58a71391f9 (patch) | |
tree | f7ecbbbbf687519689f1bea33aa6a07c4b51571a /src/main/java/kr/syeyoung/dungeonsguide/features/impl | |
parent | 32317d3372448fd9c719cb96ba60c0b9dde1303c (diff) | |
download | Skyblock-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')
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()))) : "") |