diff options
author | syeyoung <cyong06@naver.com> | 2021-01-17 19:10:53 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-01-17 19:10:53 +0900 |
commit | 35202074c907920f7d3cb41575db7db1e1e664f3 (patch) | |
tree | d0cdf6239ebb16c281d0b519db14502c7295dacf /src/main/java | |
parent | d5a87904a70acb4c1ea177f7e5e0c5ec751364f8 (diff) | |
download | Skyblock-Dungeons-Guide-35202074c907920f7d3cb41575db7db1e1e664f3.tar.gz Skyblock-Dungeons-Guide-35202074c907920f7d3cb41575db7db1e1e664f3.tar.bz2 Skyblock-Dungeons-Guide-35202074c907920f7d3cb41575db7db1e1e664f3.zip |
bettuh map
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java index 47a1c32d..bab2ec33 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java @@ -171,26 +171,28 @@ public class FeatureDungeonMap extends GuiFeature implements DungeonEndListener, for (int i = 1; i < 20; i++) { NetworkPlayerInfo networkPlayerInfo = list.get(i); String name = networkPlayerInfo.getDisplayName() != null ? networkPlayerInfo.getDisplayName().getFormattedText() : ScorePlayerTeam.formatPlayerName(networkPlayerInfo.getPlayerTeam(), networkPlayerInfo.getGameProfile().getName()); - if (TextUtils.stripColor(name).endsWith("(DEAD)")) { - continue; - } if (name.trim().equals("§r") || name.startsWith("§r ")) continue; String actual = TextUtils.stripColor(name).trim().split(" ")[0]; EntityPlayer entityplayer = Minecraft.getMinecraft().theWorld.getPlayerEntityByName(actual); + if (TextUtils.stripColor(name).endsWith("(DEAD)") && entityplayer != Minecraft.getMinecraft().thePlayer) { + continue; + } Point pt2; double yaw2; + if (entityplayer != null) { pt2 = mapProcessor.worldPointToMapPoint(entityplayer.getPositionEyes(partialTicks)); - yaw2 = entityplayer.prevRotationYawHead + (entityplayer.rotationYaw - entityplayer.prevRotationYawHead) * partialTicks; + yaw2 = entityplayer.prevRotationYawHead + (entityplayer.rotationYawHead - entityplayer.prevRotationYawHead) * partialTicks; } else { String iconName = mapProcessor.getMapIconToPlayerMap().get(actual); if (iconName == null) continue; Vec4b vec = mapData.mapDecorations.get(iconName); if (vec == null) { continue; + } else { + pt2 = new Point(vec.func_176112_b() / 2 + 64, vec.func_176113_c() / 2 + 64); + yaw2 = vec.func_176111_d() * 360 / 16.0f ; } - pt2 = new Point(vec.func_176112_b() /2 + 64, vec.func_176113_c() / 2 + 64); - yaw2 = vec.func_176111_d() * 360 / 16.0f + 180; } GlStateManager.pushMatrix(); if (entityplayer == Minecraft.getMinecraft().thePlayer || this.<Boolean>getParameter("showotherplayers").getValue()) |