mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Mark chunks as saved after saving them
Prevents re-saving them again later.
This commit is contained in:
parent
646d59a575
commit
0aa7d1a07f
@ -10845,6 +10845,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ task.queue();
|
||||
+
|
||||
+ chunk.setUnsaved(false);
|
||||
+
|
||||
+ return true;
|
||||
+ } catch (final ThreadDeath death) {
|
||||
+ throw death;
|
||||
@ -10863,6 +10865,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ } else {
|
||||
+ RegionFileIOThread.scheduleSave(this.world, this.chunkX, this.chunkZ, save, RegionFileIOThread.RegionFileType.CHUNK_DATA);
|
||||
+ }
|
||||
+ chunk.setUnsaved(false);
|
||||
+ } catch (final ThreadDeath death) {
|
||||
+ throw death;
|
||||
+ } catch (final Throwable thr) {
|
||||
|
Loading…
Reference in New Issue
Block a user