mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 22:16:01 +00:00
Improve registry loading
This commit is contained in:
1 parent
c0f66ad93d
commit
31811630ea
4 files changed
+92
-66
No files matched your search
@@ -384,8 +384,6 @@ public class ReplayServer extends IntegratedServer {
|
||||
|
||||
super.initServer();
|
||||
|
||||
this.overworld().noSave = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -713,6 +711,15 @@ public class ReplayServer extends IntegratedServer {
|
||||
|
||||
public static final TicketType<ChunkPos> ENTITY_LOAD_TICKET = TicketType.create("replay_entity_load", Comparator.comparingLong(ChunkPos::toLong), 5);
|
||||
|
||||
@Override
|
||||
public void loadLevel() {
|
||||
super.loadLevel();
|
||||
|
||||
for (ServerLevel level : this.levels.values()) {
|
||||
level.noSave = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void closeLevel(ServerLevel serverLevel) {
|
||||
if (serverLevel == null) {
|
||||
return;
|
||||
@@ -769,6 +776,11 @@ public class ReplayServer extends IntegratedServer {
|
||||
return EditorStateManager.get(this.metadata.replayIdentifier);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isReady() {
|
||||
return super.isReady() && this.initializedWithSnapshot;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tickServer(BooleanSupplier booleanSupplier) {
|
||||
if (!this.initializedWithSnapshot) {
|
||||
|
||||
Reference in new issue
Block a user