修复队友标识问题
This commit is contained in:
parent
f75350fd2d
commit
8bf18bbfaf
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ public class VehicleTeamOverlay implements LayeredDraw.Layer {
|
||||||
if (player.getVehicle() instanceof VehicleEntity) {
|
if (player.getVehicle() instanceof VehicleEntity) {
|
||||||
List<Entity> entities = SeekTool.getPlayer(player, player.level());
|
List<Entity> entities = SeekTool.getPlayer(player, player.level());
|
||||||
for (var e : entities) {
|
for (var e : entities) {
|
||||||
if (e != null && e != player && calculateAngle(e, camera) < VectorUtil.fov / 2) {
|
if (e != null && e != player && calculateAngle(e, camera) < VectorUtil.fov) {
|
||||||
Entity team = e;
|
Entity team = e;
|
||||||
if (e.getVehicle() != null) {
|
if (e.getVehicle() != null) {
|
||||||
team = e.getVehicle();
|
team = e.getVehicle();
|
||||||
|
|
Loading…
Add table
Reference in a new issue