Closed artur9010 closed 5 months ago
iirc, I had this issue when stopping the server the map would not save because the lock was released before saving it, my PR https://github.com/InfernalSuite/AdvancedSlimePaper/pull/56 should fix this issue
When chunk gets unloaded it will replace the in memory chunk with a SlimeChunkSkeleton
Mutating a loaded (but previously unloaded) chunk will have no effect when saving the world because the chunk is referencing the SlimeChunkSkeleton
Getting further from the loaded chunk will call the unload
method which will replace the in memory chunk, thus saving the chunk state properly.
To sum up, unloaded chunks that gets loaded back will not reflect the chunk in the save until it gets unloaded again.
Commenting SlimeInMemoryWorld.java:115
solves this issue, but could it have any side effects?
Semi related issue: Spawning on a world (PlayerSpawnLocationEvent
) makes the chunk (on which the player spawned) unload
Describe the issue
After gracefully stopping server (/stop) and starting it again some chunks was not saved. I didn't seen any errors in logs.
Spigot version Build 1436 from Discord. I also tried to edit map on purpur fork - same issue.
Plugin version as above