fixed bug in double list config

This commit is contained in:
FalsePattern committed 2022-09-25 14:18:58 +02:00
1 parent 0af5c94b4b
commit 08e3362127
1 file changed
+1 -1
@@ -62,7 +62,7 @@ public class DoubleListConfigField extends AListConfigField<double[]> {
property.setDefaultValues(defaultValue);
property.setMinValue(min);
property.setMaxValue(max);
if (!property.isIntList()) {
if (!property.isDoubleList()) {
setToDefault();
}
property.comment += "\n[range: " + min + " ~ " + max + ", default: " + Arrays.toString(defaultValue) + "]";