Skip to content

Commit

Permalink
fix: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Jan 4, 2025
1 parent 50f70c2 commit 6562f3f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public abstract class SliderMixin extends LivingEntityMixin {

@Inject(method = "calculateMoveDelay", at = @At("HEAD"), cancellable = true)
protected void redux$calculateMoveDelay(CallbackInfoReturnable<Integer> cir) {
int rand = this.getRandom().nextInt(8);
int rand = this.getRandom().nextInt(7);
int adjusted = (this.isCritical() ? 3 : 7) + rand;
cir.setReturnValue(adjusted);
}

@Inject(method = "customServerAiStep", at = @At("TAIL"))
@Inject(method = "customServerAiStep", at = @At("HEAD"))
protected void redux$customServerAiStep(CallbackInfo ci) {
if (!this.isCritical() && this.moveDelay == 7 || this.isCritical() && this.moveDelay == 3) {
SliderSignalAttachment.sendPacket((Slider) (Object) this);
Expand Down

0 comments on commit 6562f3f

Please sign in to comment.