aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-01 18:22:07 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-01 18:22:07 +0900
commitb6c78a8f11a75ca3d7c70f72fbcb8c452b12ee62 (patch)
treee3505f4b99d0a3b513220482d06ab6b1fa2abf63
parente0387c6bdeed4660e7d900ca8f0fc0147e95fce3 (diff)
downloadSkyblock-Dungeons-Guide-b6c78a8f11a75ca3d7c70f72fbcb8c452b12ee62.tar.gz
Skyblock-Dungeons-Guide-b6c78a8f11a75ca3d7c70f72fbcb8c452b12ee62.tar.bz2
Skyblock-Dungeons-Guide-b6c78a8f11a75ca3d7c70f72fbcb8c452b12ee62.zip
edit sum question
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/EventListener.java1
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorRiddle.java5
-rw-r--r--src/main/resources/roomdata/b2dce4ed-2bda-4303-a4d7-3ebb914db318.roomdatabin7198 -> 7194 bytes
3 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
index c1f957ae..2fe737c2 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
@@ -73,6 +73,7 @@ public class EventListener {
@SubscribeEvent
public void onRender(RenderGameOverlayEvent.Post postRender) {
try {
+ if (postRender.type != RenderGameOverlayEvent.ElementType.TEXT) return;
SkyblockStatus skyblockStatus = DungeonsGuide.getDungeonsGuide().getSkyblockStatus();
if (!skyblockStatus.isOnDungeon()) return;
if (DungeonsGuide.DEBUG) {
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorRiddle.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorRiddle.java
index 3cf87e2f..800b34f7 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorRiddle.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorRiddle.java
@@ -68,11 +68,12 @@ public class RoomProcessorRiddle extends GeneralRoomProcessor {
});
if (armor != null) {
+ this.chest = null;
BlockPos pos = armor.get(0).getPosition();
- for (BlockPos allInBox : BlockPos.getAllInBox(pos.add(-1, -2, -1), pos.add(1, -2, 1))) {
+ for (BlockPos allInBox : BlockPos.getAllInBox(pos.add(-1, 0, -1), pos.add(1, 0, 1))) {
Block b = w.getChunkFromBlockCoords(allInBox).getBlock(allInBox);
- if ((b == Blocks.chest || b == Blocks.trapped_chest) && allInBox.distanceSq(pos.add(0,-1,0)) == 1) {
+ if ((b == Blocks.chest || b == Blocks.trapped_chest)&& allInBox.distanceSq(pos) == 1 ) {
this.chest = allInBox;
return;
}
diff --git a/src/main/resources/roomdata/b2dce4ed-2bda-4303-a4d7-3ebb914db318.roomdata b/src/main/resources/roomdata/b2dce4ed-2bda-4303-a4d7-3ebb914db318.roomdata
index b616d12e..ddf272ae 100644
--- a/src/main/resources/roomdata/b2dce4ed-2bda-4303-a4d7-3ebb914db318.roomdata
+++ b/src/main/resources/roomdata/b2dce4ed-2bda-4303-a4d7-3ebb914db318.roomdata
Binary files differ