mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 16:25:36 +00:00
Mantle.edit() is bridged: an edit buffers sets and removals across layers per block, its reads and visits see them over the unchanged mantle, and commit() publishes them all, or none when a chunk it touches was not prepared; the edit can then only be closed. While an edit is open the view itself only reads, a second edit is refused and edits do not nest. Module layers registered with the GENERATION lifetime are now removed when Iris cleans a generated mantle chunk, in both the covered cleanup and the pregenerator's forced cleanup, as Iris deletes its own transient slices (GenerationLayers). Persistent layers and layers no loaded module registers stay, retaining ModuleLayerValues keeps them all, and a pack whose modules fail to load keeps its layers.