mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Updated DistantHorizons support to work with latest release candidate
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user