From 44d15fa45a9060794d4698bd166547e4231572a8 Mon Sep 17 00:00:00 2001 From: entrapy <141581284+entrapy@users.noreply.github.com> Date: Tue, 4 Aug 2026 11:21:17 -0500 Subject: [PATCH] Fix missed chest open callbacks for max-range opens --- .../features/0019-Delay-open-close-callbacks-for-chests.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-server/patches/features/0019-Delay-open-close-callbacks-for-chests.patch b/paper-server/patches/features/0019-Delay-open-close-callbacks-for-chests.patch index 6c493b1103bb..406b7e15e1fa 100644 --- a/paper-server/patches/features/0019-Delay-open-close-callbacks-for-chests.patch +++ b/paper-server/patches/features/0019-Delay-open-close-callbacks-for-chests.patch @@ -49,7 +49,7 @@ diff --git a/net/minecraft/world/level/block/entity/ContainerOpenersCounter.java index baa8b5aba0500981a191626553d66650c7304b88..52737172ccfa0c7c977e4f2fe1db242e0bb92d25 100644 --- a/net/minecraft/world/level/block/entity/ContainerOpenersCounter.java +++ b/net/minecraft/world/level/block/entity/ContainerOpenersCounter.java -@@ -37,11 +37,23 @@ public abstract class ContainerOpenersCounter { +@@ -37,11 +37,24 @@ public abstract class ContainerOpenersCounter { protected abstract void openerCountChanged(final Level level, final BlockPos pos, final BlockState blockState, int previous, int current); @@ -66,6 +66,7 @@ index baa8b5aba0500981a191626553d66650c7304b88..52737172ccfa0c7c977e4f2fe1db242e ) { + // Paper start - delay open/close callbacks + if (this.delayCallbacks()) { ++ this.maxInteractionRange = Math.max(maxInteractionRange, this.maxInteractionRange); + scheduleRecheck(level, pos, blockState, 1); + return; + }