Skip to content

Commit

Permalink
changing spread missing default constructor (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
CJCrafter authored Jan 21, 2025
1 parent d43ff8a commit ab8b142
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,23 @@ public String getKeyword() {
return new ChangingSpread(startingAmount, resetTime, increaseChangeWhen, bounds);
}

public record Bounds(boolean resetAfterReachingBound, double min, double max) implements Serializer<Bounds> {
public static class Bounds implements Serializer<Bounds> {

private boolean resetAfterReachingBound;
private double min;
private double max;

/**
* Default constructor for serializer
*/
public Bounds() {
}

public Bounds(boolean resetAfterReachingBound, double min, double max) {
this.resetAfterReachingBound = resetAfterReachingBound;
this.min = min;
this.max = max;
}

/**
* Checks bounds of spread
Expand Down

0 comments on commit ab8b142

Please # to comment.