Paper/patches
Bjarne Koll 8a7dd61348
Mark parsed PoiChunks with data as not loaded (#8405)
Previously, PoiChunk#empty would create a new empty poi chunk with
loaded already set to true, as no data was contained in the chunk.
This allowed the poi chunk to skip expensive trips to the main thread.

However, PoiChunk#parse used #empty to create the initial PoiChunk
instance that is then filled with data.
This leads to PoiChunks returned from #parse to already be marked as
loaded, preventing the then needed trip to the tick thread to update
things like the village distance tracker.

To fix this, this commit now marks the PoiChunks loaded state as false
if the parse logic actually read and parsed any data.
This allows the PoiChunk#load method to properly run its callbacks when
called for the first time.
2022-09-29 08:54:47 -07:00
..
api Fixes a couple issues with entity spawn reasons (#8390) 2022-09-27 01:24:56 +01:00
removed Rewrite chunk system (#8177) 2022-09-26 01:02:51 -07:00
server Mark parsed PoiChunks with data as not loaded (#8405) 2022-09-29 08:54:47 -07:00