mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-03 22:16:28 +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
+1
-1
@@ -64,7 +64,7 @@ dependencies {
|
|||||||
|
|
||||||
include(implementation("com.moulberry:mixinconstraints:1.0.1"))
|
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:sodium:RncWhTxD")
|
||||||
modCompileOnly("maven.modrinth:iris:kuOV4Ece")
|
modCompileOnly("maven.modrinth:iris:kuOV4Ece")
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class DistantHorizonsSupport {
|
|||||||
public static void register() {
|
public static void register() {
|
||||||
DhApiEventRegister.on(DhApiWorldLoadEvent.class, new DhApiWorldLoadEvent() {
|
DhApiEventRegister.on(DhApiWorldLoadEvent.class, new DhApiWorldLoadEvent() {
|
||||||
@Override
|
@Override
|
||||||
public void onLevelLoad(DhApiEventParam<EventParam> dhApiEventParam) {
|
public void onWorldLoad(DhApiEventParam<EventParam> dhApiEventParam) {
|
||||||
if (Flashback.isInReplay()) {
|
if (Flashback.isInReplay()) {
|
||||||
Flashback.LOGGER.info("Forcing Distant Horizons to read-only because we're inside a replay");
|
Flashback.LOGGER.info("Forcing Distant Horizons to read-only because we're inside a replay");
|
||||||
DhApi.Delayed.worldProxy.setReadOnly(true);
|
DhApi.Delayed.worldProxy.setReadOnly(true);
|
||||||
@@ -53,7 +53,7 @@ public class DistantHorizonsSupport {
|
|||||||
|
|
||||||
DhApiEventRegister.on(DhApiWorldUnloadEvent.class, new DhApiWorldUnloadEvent() {
|
DhApiEventRegister.on(DhApiWorldUnloadEvent.class, new DhApiWorldUnloadEvent() {
|
||||||
@Override
|
@Override
|
||||||
public void onLevelUnload(DhApiEventParam<EventParam> dhApiEventParam) {
|
public void onWorldUnload(DhApiEventParam<EventParam> dhApiEventParam) {
|
||||||
if (boundReplaySaveStructure) {
|
if (boundReplaySaveStructure) {
|
||||||
Flashback.LOGGER.info("Unbinding IDhApiSaveStructure from REPLAY_SAVE_STRUCTURE");
|
Flashback.LOGGER.info("Unbinding IDhApiSaveStructure from REPLAY_SAVE_STRUCTURE");
|
||||||
DhApi.overrides.unbind(IDhApiSaveStructure.class, REPLAY_SAVE_STRUCTURE);
|
DhApi.overrides.unbind(IDhApiSaveStructure.class, REPLAY_SAVE_STRUCTURE);
|
||||||
|
|||||||
Reference in new issue
Block a user