Things that we aren't going to implement
9 posts • Page 1 of 1
For a mod I'm making, I'd like to be able to clear the chart without tags disappearing. I assume that clear_chart just nils the chart, but would it be possible to provide a way to clear the chart but leaving the tags?
Unfortunately; no. The tags are stored directly on the chart itself so if the chart is removed so are the tags.
If you want to get ahold of me I'm almost always on Discord.
It's more complicated than that:
The chunk must be charted for a tag to be valid at that location.
Ahh, thought there might be something like that lurking with Rseding said that tags are stored in the chart. Thanks for clarifying
This would work if you store the tags when the chunk is cleared, but restore them in the on_chunk_charted event
There is a subtle reason I haven't tried; I want to perform this action every tick, on multiplayer. Ne pas.
Setting a chart tag shouldn't be extremely expensive. It should be very cheap even if it's done in lua compared to chunk generation. Restoring chart tags every tick is possible to do quickly if you use tables with chunk location as index.