Updated DistantHorizons support to work with latest release candidate

This commit is contained in:
Moulberry committed 2024-12-30 00:56:16 -05:00
1 parent 4c2b9f7c38
commit b909792fbb
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ dependencies {
include(implementation("com.moulberry:mixinconstraints:1.0.1"))
modCompileOnly(rootProject.files('deps/DistantHorizons-2.3.0-a-dev-1.21.1.jar'))
modCompileOnly(rootProject.files('deps/DistantHorizons-2.3.0-b-RC2-1.21.4-neoforge-fabric.jar'))
modCompileOnly("maven.modrinth:sodium:RncWhTxD")
modCompileOnly("maven.modrinth:iris:kuOV4Ece")
@@ -34,7 +34,7 @@ public class DistantHorizonsSupport {
public static void register() {
DhApiEventRegister.on(DhApiWorldLoadEvent.class, new DhApiWorldLoadEvent() {
@Override
public void onLevelLoad(DhApiEventParam<EventParam> dhApiEventParam) {
public void onWorldLoad(DhApiEventParam<EventParam> dhApiEventParam) {
if (Flashback.isInReplay()) {
Flashback.LOGGER.info("Forcing Distant Horizons to read-only because we're inside a replay");
DhApi.Delayed.worldProxy.setReadOnly(true);
@@ -53,7 +53,7 @@ public class DistantHorizonsSupport {
DhApiEventRegister.on(DhApiWorldUnloadEvent.class, new DhApiWorldUnloadEvent() {
@Override
public void onLevelUnload(DhApiEventParam<EventParam> dhApiEventParam) {
public void onWorldUnload(DhApiEventParam<EventParam> dhApiEventParam) {
if (boundReplaySaveStructure) {
Flashback.LOGGER.info("Unbinding IDhApiSaveStructure from REPLAY_SAVE_STRUCTURE");
DhApi.overrides.unbind(IDhApiSaveStructure.class, REPLAY_SAVE_STRUCTURE);