diff options
author | syeyoung <cyong06@naver.com> | 2021-01-30 19:20:27 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-01-30 19:20:27 +0900 |
commit | 8d4f019b9a33c4b5acfc28a5cdb530ceaba81923 (patch) | |
tree | c8cadf92ff3413f2718db5ff227cf7166dcd970f | |
parent | 1e092bb06afd70a58d5aa56dc1aba96fbc79150a (diff) | |
download | Skyblock-Dungeons-Guide-8d4f019b9a33c4b5acfc28a5cdb530ceaba81923.tar.gz Skyblock-Dungeons-Guide-8d4f019b9a33c4b5acfc28a5cdb530ceaba81923.tar.bz2 Skyblock-Dungeons-Guide-8d4f019b9a33c4b5acfc28a5cdb530ceaba81923.zip |
fix livid and map
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonMap.java | 2 | ||||
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonMap.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonMap.java index 962f314d..15f0baaf 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonMap.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonMap.java @@ -180,7 +180,7 @@ public class FeatureDungeonMap extends GuiFeature implements DungeonEndListener, Point pt2; double yaw2; - if (entityplayer != null && !entityplayer.isInvisible()) { + if (entityplayer != null && (!entityplayer.isInvisible() || entityplayer == Minecraft.getMinecraft().thePlayer)) { pt2 = mapProcessor.worldPointToMapPoint(entityplayer.getPositionEyes(partialTicks)); yaw2 = entityplayer.prevRotationYawHead + (entityplayer.rotationYawHead - entityplayer.prevRotationYawHead) * partialTicks; } else { diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java index bdee9bd4..b518fc07 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bossfight/BossfightProcessorLivid.java @@ -38,8 +38,10 @@ public class BossfightProcessorLivid extends GeneralBossfightProcessor { realLividName = updateEvent.entityLiving.getName(); realLivid = (EntityOtherPlayerMP) updateEvent.entityLiving; prefix = lividColorPrefix.get(realLividName.split(" ")[0]); + } else if (realLividName.equalsIgnoreCase(updateEvent.entityLiving.getName())) { + realLivid = (EntityOtherPlayerMP) updateEvent.entityLiving; } - } else if (updateEvent.entityLiving.getName().startsWith("§a﴾ "+prefix) && updateEvent.entityLiving instanceof EntityArmorStand) { + } else if (updateEvent.entityLiving.getName().startsWith(prefix+"﴾ ") && updateEvent.entityLiving instanceof EntityArmorStand) { lividStand = (EntityArmorStand) updateEvent.entityLiving; } } |