diff --git a/src/main/java/com/replaymod/simplepathing/SPTimeline.java b/src/main/java/com/replaymod/simplepathing/SPTimeline.java index b3ab522c..830291a8 100644 --- a/src/main/java/com/replaymod/simplepathing/SPTimeline.java +++ b/src/main/java/com/replaymod/simplepathing/SPTimeline.java @@ -105,9 +105,12 @@ public class SPTimeline implements PathingRegistry { public void setDefaultInterpolatorType(InterpolatorType defaultInterpolatorType) { Validate.isTrue(defaultInterpolatorType != InterpolatorType.DEFAULT, "Must not be DEFAULT"); + InterpolatorType prevType = this.defaultInterpolatorType; this.defaultInterpolatorType = Validate.notNull(defaultInterpolatorType); - timeline.pushChange(updateInterpolators()); + if (prevType != null && prevType != this.defaultInterpolatorType) { + timeline.pushChange(updateInterpolators()); + } } public Change setDefaultInterpolator(Interpolator interpolator) {