mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-30 09:44:24 +00:00
Draw players as facing arrows on the map
The studio map showed players as plain dots. A blue arrow with a white edge and dark outline now points where the player looks, with the name in a pill above, readable on any terrain. Markers carry a yaw (rounded to 5 degrees so head turns do not flood the players event); entities keep their dot. v3: 3914c4667
This commit is contained in:
1 parent
76dcab175b
commit
d28b9d13cc
8 files changed
+174
-25
No files matched your search
+1
-1
@@ -58,7 +58,7 @@ public final class ModdedVisionOverlay implements GuiOverlay {
|
||||
List<GuiMarker> markers = new ArrayList<>();
|
||||
for (ServerPlayer player : level.players()) {
|
||||
Vec3 position = player.position();
|
||||
markers.add(GuiMarker.player(player.getScoreboardName(), position.x(), position.z()));
|
||||
markers.add(GuiMarker.player(player.getScoreboardName(), position.x(), position.z(), player.getYRot()));
|
||||
}
|
||||
return markers;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user