Skip to content

Commit

Permalink
fix: more fixes aaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Jan 5, 2025
1 parent 33c988d commit 688d53a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ protected void tickSignal(Slider slider) {
if (this.signalTick == 2) playSound(slider);
else if (this.signalTick == 1) {
this.overrideDirection = null;
this.hasOverriden = false;
}
this.signalTick--;
}
Expand Down Expand Up @@ -78,7 +77,7 @@ public static void syncTarget(Slider slider, Entity target) {

public void beginSignal(Slider slider) {
if (this.getSignalTick() <= 2) {
this.overrideDirection = null;
if (!this.hasOverriden) this.overrideDirection = null;
this.setSignalTick(8);
playSound(slider);
}
Expand All @@ -102,7 +101,7 @@ public void setSignalTick(int signalTick) {
}

public void setOverrideDirection(Slider entity, Direction direction) {
if ((direction == null && !this.hasOverriden) || this.signalTick == 0) return;
if ((direction == null && !this.hasOverriden) || (direction == null && this.signalTick == 0)) return;
this.overrideDirection = direction;
this.hasOverriden = true;
}
Expand Down

0 comments on commit 688d53a

Please sign in to comment.