Reconcile POI records for natively placed structures

Native structure placement skipped POI updates, leaving beds and job sites without records. Dirty sections are now marked while the structure is placed and reconciled on chunk load on the owning thread.
The NMS adapter test classpath gains the mockito-core version core already uses, for the new tests.

Upstream: a28614c04
This commit is contained in:
piexel committed 2026-11-10 01:14:54 +01:00
1 parent 8d5b605afd
commit 92ab8b6d01
8 files changed
+475 -3

No files matched your search

@@ -226,6 +226,9 @@ public interface INMSBinding {
default void flushChunkIO(World world) {
}
default void reconcileNativeStructurePois(Chunk chunk) {
}
void injectBiomesFromMantle(Chunk e, Mantle<Matter> mantle);
ItemStack applyCustomNbt(ItemStack itemStack, KMap<String, Object> customNbt) throws IllegalArgumentException;
@@ -21,6 +21,7 @@ package art.arcane.iris.engine;
import art.arcane.iris.platform.bukkit.BukkitWorldBinding;
import art.arcane.iris.core.IrisSettings;
import art.arcane.volmlib.util.cache.CacheKey;
import art.arcane.iris.core.nms.INMS;
import art.arcane.iris.engine.framework.Engine;
import art.arcane.iris.engine.framework.EngineAssignedWorldManager;
import art.arcane.iris.spi.IrisLogging;
@@ -205,6 +206,8 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
return;
}
INMS.get().reconcileNativeStructurePois(e);
if (cleanupServiceStopped || cleanupService == null || cleanupService.isShutdown()) {
return;
}