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
5b5616ce14
commit
f3493776c8
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user