diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/data/status/YJDDZHTrainStatus.java b/src/main/java/club/joylink/rtss/simulation/cbtc/data/status/YJDDZHTrainStatus.java index 99764ed89..cdf92832e 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/data/status/YJDDZHTrainStatus.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/data/status/YJDDZHTrainStatus.java @@ -43,7 +43,11 @@ public class YJDDZHTrainStatus extends TrainStatus { status.setLocationKM(this.locationKM); change = true; } - status.setSpeed(train.getSpeed()); + if (!Objects.equals(this.getSpeed(), train.getSpeed())) { + this.setSpeed(train.getSpeed()); + status.setSpeed(this.getSpeed()); + change = true; + } return change; } }