mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -07:00
Add flush parameter to World#save (#12330)
This commit is contained in:
@@ -1264,13 +1264,13 @@ public class CraftWorld extends CraftRegionAccessor implements World {
|
||||
// Paper end
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
public void save(boolean flush) {
|
||||
org.spigotmc.AsyncCatcher.catchOp("world save"); // Spigot
|
||||
this.server.checkSaveState();
|
||||
boolean oldSave = this.world.noSave;
|
||||
|
||||
this.world.noSave = false;
|
||||
this.world.save(null, false, false);
|
||||
this.world.save(null, flush, false);
|
||||
|
||||
this.world.noSave = oldSave;
|
||||
}
|
||||
|
Reference in New Issue
Block a user