Skip to content

Commit

Permalink
Update BoatMixin.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Jan 24, 2025
1 parent cbeed1e commit af0c7a9
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ public BoatMixin(EntityType<?> entityType, Level level) {

@Inject(method = "tick", at = @At("HEAD"))
public void wilderWild$tick(CallbackInfo info) {
int boostTicks = this.wilderWild$getBoatBoostTicks();
this.wilderWild$setBoatBoostTicks(Math.max(boostTicks - 1, 0));
this.wilderWild$setBoatBoosted(this.wilderWild$boatBoostTicks > 0);
if (!this.level().isClientSide) {
int boostTicks = this.wilderWild$getBoatBoostTicks();
this.wilderWild$setBoatBoostTicks(Math.max(boostTicks - 1, 0));
this.wilderWild$setBoatBoosted(this.wilderWild$boatBoostTicks > 0);
}
}

@WrapOperation(
Expand Down

0 comments on commit af0c7a9

Please sign in to comment.