Skip to content

Commit

Permalink
Merge pull request #89 from RTOServer/dev/wandering_trader
Browse files Browse the repository at this point in the history
修复生成失败原因写反的问题
  • Loading branch information
Gu-ZT authored Jan 4, 2025
2 parents 911380b + 3f57c5f commit e20902d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private void spawn(@NotNull ServerLevel serverLevel, boolean bl, boolean bl2, Ca
private int spawn0(@NotNull RandomSource instance, int i) {
int result = instance.nextInt(i);
if (result > this.spawnChance) {
this.gca$sendMsg("Probability not met, expected i > %s, but obtained %s".formatted(this.spawnChance, result));
this.gca$sendMsg("Probability not met, expected i <= %s, but obtained %s".formatted(this.spawnChance, result));
}
return result;
}
Expand All @@ -48,7 +48,7 @@ private int spawn0(@NotNull RandomSource instance, int i) {
private int spawn1(@NotNull RandomSource instance, int i) {
int result = instance.nextInt(i);
if (result != 0) {
this.gca$sendMsg("Probability not met, expected i != 0, but obtained %s".formatted(result));
this.gca$sendMsg("Probability not met, expected i == 0, but obtained %s".formatted(result));
}
return result;
}
Expand Down

0 comments on commit e20902d

Please sign in to comment.