mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Improve registry loading
This commit is contained in:
1 parent
35f72de433
commit
acff490918
4 files changed
+89
-68
No files matched your search
@@ -395,8 +395,6 @@ public class ReplayServer extends IntegratedServer {
|
||||
|
||||
super.initServer();
|
||||
|
||||
this.overworld().noSave = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -728,6 +726,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;
|
||||
@@ -789,6 +796,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