You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
@mworzala I've made a little implementation of getting and loading chunks you can add it yourself
It does require reflection but it shouldnt affect performance much, this is due to limitations of Minestom API in terms of accessibility
I do not believe this is the right way to handle this. It's true that Minestom does not expose any way to get affected chunks from a BlockBatch, however the Schematic contains enough information to compute the affected area. I would prefer using that (math outlined in original comment).
Also, optionalLoadAll is not great to use in these cases, because Minestom will never unload them automatically. It would be better to keep track of the loaded chunks and unload them again afterwards if there are still no viewers.
It would be useful to have an option to automatically load chunks when pasting a schematic.
You can determine the covered area of the schematic using something like
Note: Any chunks loaded to paste should be unloaded afterwards if they still do not have any viewers).
The text was updated successfully, but these errors were encountered: