SteamWar/BauSystem2.0
Archiviert
12
0

Auto reshow on MicroMotion
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-06-18 18:20:21 +02:00
Ursprung 8ef7bafa22
Commit 65cf7ffe77

Datei anzeigen

@ -65,6 +65,9 @@ public class Record {
Vector velocity = position.getVelocity(); Vector velocity = position.getVelocity();
if (velocity.getY() == 0 && (velocity.getX() != 0 || velocity.getZ() != 0) && (Math.abs(velocity.getX()) < 0.001 || Math.abs(velocity.getZ()) < 0.001)) { if (velocity.getY() == 0 && (velocity.getX() != 0 || velocity.getZ() != 0) && (Math.abs(velocity.getX()) < 0.001 || Math.abs(velocity.getZ()) < 0.001)) {
if (!tntRecord.hasMicroMotion) {
positions.forEach(tntPosition -> TraceShowManager.show(region, tntPosition));
}
tntRecord.hasMicroMotion = true; tntRecord.hasMicroMotion = true;
} }
} }