From 389d2f9549553d51637a5f9eac4cc668ca2a27aa Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Tue, 13 Oct 2026 00:50:18 +0200 Subject: [PATCH] Adopt only villagers and creakings born during a mob_ai scenario Animal babies and dropped items stay out of the comparison, as before the merge: the probe does not model them. Co-Authored-By: Claude Opus 5.5 --- .../java/dev/horizonlab/parity/VanillaMobAiOracle.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mods/horizon/src/test/java/dev/horizonlab/parity/VanillaMobAiOracle.java b/mods/horizon/src/test/java/dev/horizonlab/parity/VanillaMobAiOracle.java index f6a5e9bb6..6185d65f0 100644 --- a/mods/horizon/src/test/java/dev/horizonlab/parity/VanillaMobAiOracle.java +++ b/mods/horizon/src/test/java/dev/horizonlab/parity/VanillaMobAiOracle.java @@ -682,11 +682,12 @@ public final class VanillaMobAiOracle { } if (!heartPositions.isEmpty()) level.tickBlockEntities(); managerTick.invoke(manager); - // What the tick spawned (babies, golems, dropped items) ticks from the next one, - // in the order it was added, with a seeded random of its own. + // Villagers the tick spawned (babies) and a heart's creakings tick from the next + // one, in the order they were added, with a seeded random of their own. Other + // newcomers (animal babies, dropped items) are left out, as the probe leaves them. List fresh = new ArrayList<>(); for (Entity e : level.getAllEntities()) - if (!(e instanceof Player) && !LABELS.containsKey(e) && (e instanceof Mob || e instanceof net.minecraft.world.entity.item.ItemEntity)) fresh.add(e); + if (!LABELS.containsKey(e) && (e instanceof Villager || created.contains(e))) fresh.add(e); fresh.sort(java.util.Comparator.comparingInt(Entity::getId)); for (Entity e : fresh) { int index = ENTS.size();