9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-23 00:49:31 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
Dreeam
a5ddca9838 Remove areChunksLoaded check to avoid double get chunk
In `moonrise$areChunksLoaded`, it pre loop chunks in range and do fullchunk.get calls to check if the chunk is loaded. But get chunk calls are expensive, then I moved the check in the following loop to prevent double call it.

can be around 1 to 2 more faster in test (8192 stacked minecarts with 1min spark profiling).
2024-10-22 00:33:03 -04:00
Dreeam
31026f4fda Forget to add return 2024-10-22 00:26:22 -04:00
Dreeam
fb95f9ed07 Moonrise: Avoid streams for block retrieval in Entity#move 2024-10-20 14:01:56 -04:00