Update to 1.21.4

Neoforge will follow as soon as it's released
This commit is contained in:
Martin Prokoph
2024-12-03 11:44:06 +01:00
parent 18209609cb
commit a2c0a8afb0
3 changed files with 12 additions and 12 deletions

View File

@@ -247,9 +247,9 @@ public abstract class MidnightConfig {
if (prevTab != null && prevTab != tabManager.getCurrentTab()) { if (prevTab != null && prevTab != tabManager.getCurrentTab()) {
prevTab = tabManager.getCurrentTab(); prevTab = tabManager.getCurrentTab();
this.list.clear(); fillList(); this.list.clear(); fillList();
list.setScrollAmount(0); list.setScrollY(0);
} }
scrollProgress = list.getScrollAmount(); scrollProgress = list.getScrollY();
for (EntryInfo info : entries) try {info.field.set(null, info.value);} catch (IllegalAccessException ignored) {} for (EntryInfo info : entries) try {info.field.set(null, info.value);} catch (IllegalAccessException ignored) {}
updateButtons(); updateButtons();
} }
@@ -391,7 +391,7 @@ public abstract class MidnightConfig {
} }
this.list.addButton(widgets, name, info); this.list.addButton(widgets, name, info);
} else this.list.addButton(List.of(), name, info); } else this.list.addButton(List.of(), name, info);
} list.setScrollAmount(scrollProgress); } list.setScrollY(scrollProgress);
updateButtons(); updateButtons();
} }
} }

View File

@@ -1,19 +1,19 @@
org.gradle.jvmargs=-Xmx4096M org.gradle.jvmargs=-Xmx4096M
minecraft_version=1.21.3 minecraft_version=1.21.4-rc3
supported_versions=1.21.2 supported_versions=
yarn_mappings=1.21.3+build.2 yarn_mappings=1.21.4-rc3+build.4
enabled_platforms=fabric,neoforge enabled_platforms=fabric
archives_base_name=midnightlib archives_base_name=midnightlib
mod_version=1.6.4 mod_version=1.6.5
maven_group=eu.midnightdust maven_group=eu.midnightdust
release_type=release release_type=release
curseforge_id=488090 curseforge_id=488090
modrinth_id=codAaoxh modrinth_id=codAaoxh
fabric_loader_version=0.16.7 fabric_loader_version=0.16.9
fabric_api_version=0.106.1+1.21.3 fabric_api_version=0.110.5+1.21.4
neoforge_version=21.3.3-beta neoforge_version=21.3.3-beta
yarn_mappings_patch_neoforge_version = 1.21+build.4 yarn_mappings_patch_neoforge_version = 1.21+build.4

View File

@@ -10,8 +10,8 @@ pluginManagement {
include("common") include("common")
include("fabric") include("fabric")
include("test-fabric") include("test-fabric")
include("neoforge") //include("neoforge")
include("test-neoforge") //include("test-neoforge")
//include("quilt") //include("quilt")
rootProject.name = "midnightlib" rootProject.name = "midnightlib"