fix more diff

This commit is contained in:
Lulu13022002
2024-12-20 23:39:43 +01:00
parent 13b890950d
commit 051ab9117a
6 changed files with 7 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ public class CraftPig extends CraftAnimals implements Pig {
}
int max = this.getHandle().steering.boostTimeTotal();
Preconditions.checkArgument(ticks >= 0 && ticks <= max, "boost ticks must not exceed 0 or %d (inclusive)", max);
Preconditions.checkArgument(ticks >= 0 && ticks <= max, "boost ticks must not exceed 0 or %s (inclusive)", max);
this.getHandle().steering.boostTime = ticks;
}

View File

@@ -55,7 +55,7 @@ public class CraftStrider extends CraftAnimals implements Strider {
}
int max = this.getHandle().steering.boostTimeTotal();
Preconditions.checkArgument(ticks >= 0 && ticks <= max, "boost ticks must not exceed 0 or %d (inclusive)", max);
Preconditions.checkArgument(ticks >= 0 && ticks <= max, "boost ticks must not exceed 0 or %s (inclusive)", max);
this.getHandle().steering.boostTime = ticks;
}