排除自己的队友标记

This commit is contained in:
Atsuishio 2025-07-15 14:46:41 +08:00 committed by Light_Quanta
parent 1a1847512b
commit 83b81b1b46
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -109,7 +109,7 @@ public class VehicleTeamOverlay implements LayeredDraw.Layer {
if (player.getVehicle() instanceof VehicleEntity) {
List<Entity> entities = SeekTool.getPlayer(player, player.level());
for (var e : entities) {
if (e != null) {
if (e != null && e != player) {
Entity team = e;
if (e.getVehicle() != null) {
team = e.getVehicle();