Skip to content

Commit

Permalink
patches
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Feb 10, 2025
1 parent e44aad1 commit 5b3cc7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion patches/net/minecraft/server/level/ServerLevel.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,15 @@
this.getProfiler().pop();

for (Entity entity : p_8648_.getPassengers()) {
@@ -807,6 +_,10 @@
@@ -807,6 +_,12 @@
} else {
this.entityManager.autoSave();
}
+ net.neoforged.neoforge.common.NeoForge.EVENT_BUS.post(new net.neoforged.neoforge.event.level.LevelEvent.Save(this));
+ if (p_8645_) {
+ net.neoforged.neoforge.common.IOUtilities.waitUntilIOWorkerComplete();
+ } else {
+ net.neoforged.neoforge.common.IOUtilities.clearWorkerWhenDone();
+ }
}
}
Expand Down

0 comments on commit 5b3cc7d

Please sign in to comment.