fix: use default as default
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/jfmod Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-08-19 20:03:05 +02:00
parent 1a8977ee3f
commit 6931303e44
Signed by: Johannes
GPG Key ID: E76429612C2929F4
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ jfMod {
minecraftVersion = "1.20.1"
yarn("build.10")
loaderVersion = "0.14.22"
libJfVersion = "3.12.1"
libJfVersion = "3.12.4"
modrinth {
projectId = "respackopts"

View File

@ -147,7 +147,7 @@ public class ConfigEnumEntry extends ConfigEntry<String> implements DelegateDyna
@Override
public CategoryBuilder<?> buildEntry(GuiEntryBuilderParam args) {
return args.builder().value(args.name(), getValue(), values.toArray(String[]::new), this::getValue, v -> {
return args.builder().value(args.name(), getDefault(), values.toArray(String[]::new), this::getValue, v -> {
if (!Objects.equals(getValue(), v)) {
if (RespackoptsConfig.debugLogs) Respackopts.LOGGER.info("ConfigEnumEntry SaveCallback");
args.saveCallback();

View File

@ -62,7 +62,7 @@ public class ConfigNumericEntry extends ConfigEntry<Double> implements DNumber {
@Override
public CategoryBuilder<?> buildEntry(GuiEntryBuilderParam args) {
return args.builder().value(args.name(), getValue(), min == null ? Double.NEGATIVE_INFINITY : min, max == null ? Double.POSITIVE_INFINITY : max, this::getValue, v -> {
return args.builder().value(args.name(), getDefault(), min == null ? Double.NEGATIVE_INFINITY : min, max == null ? Double.POSITIVE_INFINITY : max, this::getValue, v -> {
if (!Objects.equals(getValue(), v)) {
if (RespackoptsConfig.debugLogs) Respackopts.LOGGER.info("ConfigNumericEntryNormal SaveCallback");
args.saveCallback();