Skip to content

Commit

Permalink
forge config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MehVahdJukaar committed Jan 27, 2025
1 parent e712eb4 commit e1e3b2f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- hotifx for forge 1.20 for previous update
- improved dynamic pack resource clearing and added config to disable it
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class CommonConfigs {
builder.push("general");
CLEAR_RESOURCES = builder.comment("Clears dynamic models and textures from the mod dynamic pack once resource reload is done. This can save up some ram.")
.define("clear_dynamic_resources", true);

builder.pop();

CONFIG = builder.buildAndRegister();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import net.mehvahdjukaar.moonlight.api.platform.configs.ConfigBuilder;
import net.mehvahdjukaar.moonlight.api.platform.configs.ConfigType;
import net.mehvahdjukaar.moonlight.api.platform.configs.forge.ConfigSpecWrapper;
import net.mehvahdjukaar.moonlight.core.CommonConfigs;
import net.mehvahdjukaar.moonlight.core.Moonlight;
import net.mehvahdjukaar.moonlight.core.fake_player.FPClientAccess;
import net.mehvahdjukaar.moonlight.core.fake_player.FakeGenericPlayer;
Expand Down Expand Up @@ -43,8 +44,6 @@
@Mod(Moonlight.MOD_ID)
public class MoonlightForge {
public static final String MOD_ID = Moonlight.MOD_ID;
public static final ForgeConfigSpec SPEC = ((ConfigSpecWrapper) ConfigBuilder.create(MOD_ID, ConfigType.COMMON)
.buildAndRegister()).getSpec();

public MoonlightForge() {
Moonlight.commonInit();
Expand All @@ -61,7 +60,7 @@ public MoonlightForge() {


public static void configsLoaded(ModConfigEvent.Loading event) {
if (event.getConfig().getSpec() == SPEC) {
if (event.getConfig().getSpec() == ((ConfigSpecWrapper) CommonConfigs.CONFIG).getSpec()) {
if (!ModLoader.get().hasCompletedState("LOAD_REGISTRIES")) {
throw new IllegalStateException("Some OTHER mod has forcefully loaded ALL other mods configs before the registry phase. This should not be done. Dont report this to Moonlight. Refusing to proceed further");
}
Expand Down
4 changes: 2 additions & 2 deletions forge/update.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"homepage": "https://www.curseforge.com/minecraft/mc-mods/selene",
"promos": {
"1.19.2-latest": "1.20-2.13.54",
"1.19.2-recommended": "1.20-2.13.54"
"1.19.2-latest": "1.20-2.13.55",
"1.19.2-recommended": "1.20-2.13.55"
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ minecraft_version = 1.20.1
enabled_platforms = fabric,forge

mod_id = moonlight
mod_version = 1.20-2.13.54
mod_version = 1.20-2.13.55
maven_group = net.mehvahdjukaar
project_id = 499980

Expand Down

0 comments on commit e1e3b2f

Please sign in to comment.