From 5a28a619b7018db6eaa4b4ef9cf150a5da68673e Mon Sep 17 00:00:00 2001 From: Bacteriawa Date: Sat, 8 Aug 2026 02:04:59 +0800 Subject: [PATCH] Make RegionizedWorldData.connections public Change the connections field in RegionizedWorldData from private to public (ReferenceList) and add a comment indicating it's exposed for BotList access. The change is in the 0112 patch file; related patch index updates are included in subsequent feature patch files. --- .../features/0112-Leaves-Fakeplayer.patch | 13 +++++++++++++ .../features/0116-Global-Entities-Counter.patch | 2 +- .../features/0120-Instant-Block-Updater.patch | 2 +- ...Object-Fix-wrong-variable-passing-in-Regio.patch | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/lophine-server/minecraft-patches/features/0112-Leaves-Fakeplayer.patch b/lophine-server/minecraft-patches/features/0112-Leaves-Fakeplayer.patch index 0508ee7..b0b61c8 100644 --- a/lophine-server/minecraft-patches/features/0112-Leaves-Fakeplayer.patch +++ b/lophine-server/minecraft-patches/features/0112-Leaves-Fakeplayer.patch @@ -7,6 +7,19 @@ Co-authored by: violetc <58360096+s-yh-china@users.noreply.github.com> As a part of : Leaves (https://github.com/LeavesMC/Leaves) Licensed under: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html) +diff --git a/io/papermc/paper/threadedregions/RegionizedWorldData.java b/io/papermc/paper/threadedregions/RegionizedWorldData.java +index 9820d2e18cbcb5fbc07fe57dd93101809ed2727d..b7df2edf243448cc6342db9360e0458f58769a12 100644 +--- a/io/papermc/paper/threadedregions/RegionizedWorldData.java ++++ b/io/papermc/paper/threadedregions/RegionizedWorldData.java +@@ -408,7 +408,7 @@ public final class RegionizedWorldData { + // Luminol end + // connections + private static final Connection[] EMPTY_CONNECTION_ARRAY = new Connection[0]; +- private final ReferenceList connections = new ReferenceList<>(EMPTY_CONNECTION_ARRAY); ++ public final ReferenceList connections = new ReferenceList<>(EMPTY_CONNECTION_ARRAY); // Lophine - BotList Public + + // misc. fields + private boolean isHandlingTick; diff --git a/net/minecraft/advancements/triggers/SimpleCriterionTrigger.java b/net/minecraft/advancements/triggers/SimpleCriterionTrigger.java index d76a338ab4f326e6105adc451eee3d4601403c98..b827d51d23ceaebef2191a9f349bbd346e73f1af 100644 --- a/net/minecraft/advancements/triggers/SimpleCriterionTrigger.java diff --git a/lophine-server/minecraft-patches/features/0116-Global-Entities-Counter.patch b/lophine-server/minecraft-patches/features/0116-Global-Entities-Counter.patch index bd86a04..0f65f2d 100644 --- a/lophine-server/minecraft-patches/features/0116-Global-Entities-Counter.patch +++ b/lophine-server/minecraft-patches/features/0116-Global-Entities-Counter.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Global Entities Counter diff --git a/io/papermc/paper/threadedregions/RegionizedWorldData.java b/io/papermc/paper/threadedregions/RegionizedWorldData.java -index 9820d2e18cbcb5fbc07fe57dd93101809ed2727d..822d49d6a8da0855f0f80c4499cae0d16ee544a4 100644 +index b7df2edf243448cc6342db9360e0458f58769a12..6040a28aad7419d343feeb5aa97551591399dfd9 100644 --- a/io/papermc/paper/threadedregions/RegionizedWorldData.java +++ b/io/papermc/paper/threadedregions/RegionizedWorldData.java @@ -558,6 +558,9 @@ public final class RegionizedWorldData { diff --git a/lophine-server/minecraft-patches/features/0120-Instant-Block-Updater.patch b/lophine-server/minecraft-patches/features/0120-Instant-Block-Updater.patch index 77322bf..d8eb550 100644 --- a/lophine-server/minecraft-patches/features/0120-Instant-Block-Updater.patch +++ b/lophine-server/minecraft-patches/features/0120-Instant-Block-Updater.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Instant Block Updater diff --git a/io/papermc/paper/threadedregions/RegionizedWorldData.java b/io/papermc/paper/threadedregions/RegionizedWorldData.java -index 822d49d6a8da0855f0f80c4499cae0d16ee544a4..1cc5d99f24737d09b7ddef985edf36b460b90d0f 100644 +index 6040a28aad7419d343feeb5aa97551591399dfd9..f1234717c2626661a93f5a22358a41752c22df3d 100644 --- a/io/papermc/paper/threadedregions/RegionizedWorldData.java +++ b/io/papermc/paper/threadedregions/RegionizedWorldData.java @@ -504,7 +504,7 @@ public final class RegionizedWorldData { diff --git a/lophine-server/minecraft-patches/features/0130-Anonymous-Object-Fix-wrong-variable-passing-in-Regio.patch b/lophine-server/minecraft-patches/features/0130-Anonymous-Object-Fix-wrong-variable-passing-in-Regio.patch index 950d9af..f19aa86 100644 --- a/lophine-server/minecraft-patches/features/0130-Anonymous-Object-Fix-wrong-variable-passing-in-Regio.patch +++ b/lophine-server/minecraft-patches/features/0130-Anonymous-Object-Fix-wrong-variable-passing-in-Regio.patch @@ -9,7 +9,7 @@ This patch is used with permission from the original author. Licensed under: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html) diff --git a/io/papermc/paper/threadedregions/RegionizedWorldData.java b/io/papermc/paper/threadedregions/RegionizedWorldData.java -index 1cc5d99f24737d09b7ddef985edf36b460b90d0f..2d725c3dfdd09400f783486f734ad53b8211f879 100644 +index f1234717c2626661a93f5a22358a41752c22df3d..a2187a61070a8dde2e457127394ce9eba44c0201 100644 --- a/io/papermc/paper/threadedregions/RegionizedWorldData.java +++ b/io/papermc/paper/threadedregions/RegionizedWorldData.java @@ -855,7 +855,7 @@ public final class RegionizedWorldData {