From b6c78a8f11a75ca3d7c70f72fbcb8c452b12ee62 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Tue, 1 Dec 2020 18:22:07 +0900 Subject: edit sum question --- .../kr/syeyoung/dungeonsguide/roomprocessor/RoomProcessorRiddle.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomprocessor') 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; } -- cgit