Chain neighbour updates as far as a server level does in the oracle

The block oracle cut chained neighbour updates at 512, but a server level
uses max-chained-neighbor-updates (1,000,000 by default), as Horizon does, so
long redstone wire cascades stopped early on the vanilla side only. Redstone
now matches on 4,000 of 4,000 cases; block updates and random ticks still
match on every compared case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-10 19:39:51 +02:00
parent 2876752a36
commit ee8e74b0d2
@@ -461,7 +461,8 @@ public final class VanillaBlockUpdateOracle {
w.raining = f.has("raining") && f.get("raining").getAsBoolean();
w.thundering = f.has("thundering") && f.get("thundering").getAsBoolean();
set(Level.class, w, "random", w.rng);
set(Level.class, w, "neighborUpdater", new net.minecraft.world.level.redstone.CollectingNeighborUpdater(w, 512));
// A server level chains up to max-chained-neighbor-updates (1,000,000 by default).
set(Level.class, w, "neighborUpdater", new net.minecraft.world.level.redstone.CollectingNeighborUpdater(w, 1000000));
w.server = make(Server.class);
w.server.loot = make(Loot.class);
w.server.loot.world = w;