
Invalid bounds generated for `Double` entries
endorh opened this issue ยท 1 comments
The Double
config entries created by ModConfigData
in ModConfigData#addToConfig
do not allow the value of 0
nor any negative numbers.
I'll agree that whoever named the constants was kind of a jerk, but Double.MIN_VALUE
isn't what you thought it was ๐
, it's the smallest non-zero positive number representable as a double
. What you want is probably Double.NEGATIVE_INFINITY
or -Double.MAX_VALUE
instead (they're not the same either).
This recently blew up my own mod, Simple Config, when it attempted to wrap config files created by CoroUtil
. I added a safeguard on my end to ignore invalid entry ranges, but I thought I'd also let you know of this small mistake. ^^