Skip to content

Commit

Permalink
Clamp trader scroll chance between 0 and 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Robotgiggle committed Jan 23, 2025
1 parent 6230aa7 commit 3bf9689
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public static final class Server implements HexConfig.ServerConfigAccess, Config
public void validatePostLoad() throws ValidationException {
this.maxOpCount = Math.max(this.maxOpCount, 0);
this.maxSpellCircleLength = Math.max(this.maxSpellCircleLength, 4);
this.traderScrollChance = Mth.clamp(this.traderScrollChance, 0.0, 1.0);

this.scrollInjections = new Object2IntOpenHashMap<>();
try {
Expand Down

0 comments on commit 3bf9689

Please sign in to comment.