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

@@ -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);