Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion server/world/world.go
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,9 @@ func (w *World) saveChunk(_ *Tx, pos ChunkPos, c *Column) {
// Afterwards, scheduled updates from that chunk are removed and all entities
// in it are closed.
func (w *World) closeChunk(tx *Tx, pos ChunkPos, c *Column) {
w.saveChunk(tx, pos, c)
if w.conf.SaveInterval > 0 {
w.saveChunk(tx, pos, c)
}
w.scheduledUpdates.removeChunk(pos)
w.redstone.removeChunk(pos)
// Note: We close c.Entities here because some entities may remove
Expand Down