From 3e6a2314bd92847a5c5c5abe656edeef30fbce08 Mon Sep 17 00:00:00 2001 From: coolGi Date: Tue, 31 May 2022 10:59:32 +0930 Subject: [PATCH] Renamed stuff to fix building --- .../lod/common/wrappers/config/ClassicConfigGUI.java | 8 ++++---- .../com/seibel/lod/fabric/mixins/MixinWorldRenderer.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/config/ClassicConfigGUI.java b/common/src/main/java/com/seibel/lod/common/wrappers/config/ClassicConfigGUI.java index 3405d9024..a9de05023 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/config/ClassicConfigGUI.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/config/ClassicConfigGUI.java @@ -109,7 +109,7 @@ public abstract class ClassicConfigGUI { // For boolean Function func = value -> new TextComponent((Boolean) value ? "True" : "False").withStyle((Boolean) value ? ChatFormatting.GREEN : ChatFormatting.RED); ((EntryInfo) info.guiValue).widget = new AbstractMap.SimpleEntry>(button -> { - ((ConfigEntry) info).setWTSave(!(Boolean) info.get()); + ((ConfigEntry) info).setWithoutSaving(!(Boolean) info.get()); button.setMessage(func.apply(info.get())); }, func); } @@ -159,9 +159,9 @@ public abstract class ClassicConfigGUI { if (((ConfigEntry) info).isValid(value) == 0 && info.getType() != List.class) { if (!cast) - ((ConfigEntry) info).setWTSave(value); + ((ConfigEntry) info).setWithoutSaving(value); else - ((ConfigEntry) info).setWTSave(value.intValue()); + ((ConfigEntry) info).setWithoutSaving(value.intValue()); } // else if (((ConfigEntry) info).isValid() == 0) // { @@ -258,7 +258,7 @@ public abstract class ClassicConfigGUI { TranslatableComponent name = new TranslatableComponent(translationPrefix + info.getNameWCategory()); if (ConfigEntry.class.isAssignableFrom(info.getClass())) { Button resetButton = new Button(this.width - ConfigScreenConfigs.SpaceFromRightScreen - 150 - ConfigScreenConfigs.ButtonWidthSpacing - ConfigScreenConfigs.ResetButtonWidth, 0, ConfigScreenConfigs.ResetButtonWidth, 20, new TextComponent("Reset").withStyle(ChatFormatting.RED), (button -> { - ((ConfigEntry) info).setWTSave(((ConfigEntry) info).getDefaultValue()); + ((ConfigEntry) info).setWithoutSaving(((ConfigEntry) info).getDefaultValue()); ((EntryInfo) info.guiValue).index = 0; this.reload = true; Objects.requireNonNull(minecraft).setScreen(this); diff --git a/fabric/src/main/java/com/seibel/lod/fabric/mixins/MixinWorldRenderer.java b/fabric/src/main/java/com/seibel/lod/fabric/mixins/MixinWorldRenderer.java index 9e01ab2bc..731603b28 100644 --- a/fabric/src/main/java/com/seibel/lod/fabric/mixins/MixinWorldRenderer.java +++ b/fabric/src/main/java/com/seibel/lod/fabric/mixins/MixinWorldRenderer.java @@ -22,7 +22,7 @@ package com.seibel.lod.fabric.mixins; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.math.Matrix4f; import com.seibel.lod.common.wrappers.McObjectConverter; -import com.seibel.lod.core.Config; +import com.seibel.lod.core.config.Config; import com.seibel.lod.core.api.internal.ClientApi; import com.seibel.lod.core.objects.math.Mat4f; import net.minecraft.client.renderer.LevelRenderer;