Skip to content

Commit

Permalink
fix ingame map rendering for subchunk servers
Browse files Browse the repository at this point in the history
  • Loading branch information
olebeck committed Jul 7, 2024
1 parent d63ccf7 commit 3138b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/worlds/worldstate/world.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,10 @@ func (w *World) StoreChunk(pos world.ChunkPos, ch *chunk.Chunk, blockNBT map[cub
}
}()
})
w.onChunkUpdate(pos, ch, w.paused)
}

w.currState().StoreChunk(pos, ch, blockNBT)
w.onChunkUpdate(pos, ch, w.paused)

return nil
}

Expand Down Expand Up @@ -469,6 +468,7 @@ func (w *World) Finish(playerData map[string]any, excludedMobs []string, withPla
}
}

w.applyBlockUpdates()
err := w.storeMemToProvider()
if err != nil {
return err
Expand Down

0 comments on commit 3138b7a

Please sign in to comment.