From 8a74c1813b718aa6d8b1f4991c7838a555115d33 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 4 Feb 2023 19:35:58 +0900 Subject: - Fix star mobs staring dmg box - Fix log spam1 Signed-off-by: syeyoung --- .../kr/syeyoung/dungeonsguide/mod/dungeon/roomfinder/DungeonRoom.java | 3 ++- .../dungeonsguide/mod/features/impl/dungeon/FeatureBoxStarMobs.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/src/main') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomfinder/DungeonRoom.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomfinder/DungeonRoom.java index 44bad60f..166e6724 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomfinder/DungeonRoom.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomfinder/DungeonRoom.java @@ -187,7 +187,8 @@ public class DungeonRoom { matchRoomAndSetupRoomProcessor(); matched = true; } catch (Exception e) { - e.printStackTrace(); + if (!e.getMessage().contains("Chunk not loaded")) + e.printStackTrace(); } finally { matching = false; } diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureBoxStarMobs.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureBoxStarMobs.java index 38e85304..df6a42a2 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureBoxStarMobs.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureBoxStarMobs.java @@ -61,7 +61,7 @@ public class FeatureBoxStarMobs extends SimpleFeature { public boolean apply(@Nullable EntityArmorStand input) { if (player.distanceSq(input.getPosition()) > sq) return false; if (!input.getAlwaysRenderNameTag()) return false; - return input.getName().contains("✯"); + return input.getName().contains("✯") && input.getName().contains(" "); } }); AColor c = this.getParameter("color").getValue(); -- cgit