diff --git a/lophine-server/minecraft-patches/features/0016-LeavesHooks.patch b/lophine-server/minecraft-patches/features/0016-LeavesHooks.patch new file mode 100644 index 0000000..473b186 --- /dev/null +++ b/lophine-server/minecraft-patches/features/0016-LeavesHooks.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Helvetica Volubi +Date: Sun, 16 Nov 2025 17:47:48 +0800 +Subject: [PATCH] LeavesHooks + + +diff --git a/ca/spottedleaf/moonrise/paper/PaperHooks.java b/ca/spottedleaf/moonrise/paper/PaperHooks.java +index d9fd093f59987f471627ff20cfd2eb1a3c0dea64..78c6d425589b8147c33583ac46d6f21ec5dbefaa 100644 +--- a/ca/spottedleaf/moonrise/paper/PaperHooks.java ++++ b/ca/spottedleaf/moonrise/paper/PaperHooks.java +@@ -29,7 +29,7 @@ import net.minecraft.world.phys.AABB; + import java.util.List; + import java.util.function.Predicate; + +-public final class PaperHooks extends BaseChunkSystemHooks implements PlatformHooks { ++public class PaperHooks extends BaseChunkSystemHooks implements PlatformHooks { + + private static final org.slf4j.Logger LOGGER = com.mojang.logging.LogUtils.getLogger(); + diff --git a/lophine-server/minecraft-patches/features/0016-Purpur-Barrels-and-enderchests-6-rows.patch b/lophine-server/minecraft-patches/features/0017-Purpur-Barrels-and-enderchests-6-rows.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0016-Purpur-Barrels-and-enderchests-6-rows.patch rename to lophine-server/minecraft-patches/features/0017-Purpur-Barrels-and-enderchests-6-rows.patch diff --git a/lophine-server/minecraft-patches/features/0017-Compatibility-fix-for-Raid-Revert-and-Cross-Region-D.patch b/lophine-server/minecraft-patches/features/0018-Compatibility-fix-for-Raid-Revert-and-Cross-Region-D.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0017-Compatibility-fix-for-Raid-Revert-and-Cross-Region-D.patch rename to lophine-server/minecraft-patches/features/0018-Compatibility-fix-for-Raid-Revert-and-Cross-Region-D.patch diff --git a/lophine-server/minecraft-patches/features/0018-Disable-some-check-for-operators.patch b/lophine-server/minecraft-patches/features/0019-Disable-some-check-for-operators.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0018-Disable-some-check-for-operators.patch rename to lophine-server/minecraft-patches/features/0019-Disable-some-check-for-operators.patch diff --git a/lophine-server/minecraft-patches/features/0019-I18n-support.patch b/lophine-server/minecraft-patches/features/0020-I18n-support.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0019-I18n-support.patch rename to lophine-server/minecraft-patches/features/0020-I18n-support.patch diff --git a/lophine-server/minecraft-patches/features/0020-Old-zombie-reinforcement.patch b/lophine-server/minecraft-patches/features/0021-Old-zombie-reinforcement.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0020-Old-zombie-reinforcement.patch rename to lophine-server/minecraft-patches/features/0021-Old-zombie-reinforcement.patch diff --git a/lophine-server/minecraft-patches/features/0021-Spawn-invulnerable-time.patch b/lophine-server/minecraft-patches/features/0022-Spawn-invulnerable-time.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0021-Spawn-invulnerable-time.patch rename to lophine-server/minecraft-patches/features/0022-Spawn-invulnerable-time.patch diff --git a/lophine-server/minecraft-patches/features/0022-Leaves-Fakeplayer.patch b/lophine-server/minecraft-patches/features/0023-Leaves-Fakeplayer.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0022-Leaves-Fakeplayer.patch rename to lophine-server/minecraft-patches/features/0023-Leaves-Fakeplayer.patch diff --git a/lophine-server/minecraft-patches/features/0023-Modify-merge-ItemEntity-logic.patch b/lophine-server/minecraft-patches/features/0024-Modify-merge-ItemEntity-logic.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0023-Modify-merge-ItemEntity-logic.patch rename to lophine-server/minecraft-patches/features/0024-Modify-merge-ItemEntity-logic.patch diff --git a/lophine-server/minecraft-patches/features/0024-Leaves-Syncmatica-Protocol.patch b/lophine-server/minecraft-patches/features/0025-Leaves-Syncmatica-Protocol.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0024-Leaves-Syncmatica-Protocol.patch rename to lophine-server/minecraft-patches/features/0025-Leaves-Syncmatica-Protocol.patch diff --git a/lophine-server/minecraft-patches/features/0025-Leaves-BBOR-Protocol.patch b/lophine-server/minecraft-patches/features/0026-Leaves-BBOR-Protocol.patch similarity index 91% rename from lophine-server/minecraft-patches/features/0025-Leaves-BBOR-Protocol.patch rename to lophine-server/minecraft-patches/features/0026-Leaves-BBOR-Protocol.patch index 01bd0ce..fdd5128 100644 --- a/lophine-server/minecraft-patches/features/0025-Leaves-BBOR-Protocol.patch +++ b/lophine-server/minecraft-patches/features/0026-Leaves-BBOR-Protocol.patch @@ -8,7 +8,7 @@ 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/net/minecraft/world/level/chunk/LevelChunk.java b/net/minecraft/world/level/chunk/LevelChunk.java -index 29788fedd54b8411c9c8872b4d83b037874fb5f0..24af6821694768058dc0146220877ab70066b5f9 100644 +index f8bc2679d9eeaa5d179ab70a4cc5c97522bcc674..a536dc4e09b22b69bcdf59871a9cccfcf8129395 100644 --- a/net/minecraft/world/level/chunk/LevelChunk.java +++ b/net/minecraft/world/level/chunk/LevelChunk.java @@ -754,6 +754,11 @@ public class LevelChunk extends ChunkAccess implements ca.spottedleaf.moonrise.p diff --git a/lophine-server/minecraft-patches/features/0026-Leaves-Jade-Protocol.patch b/lophine-server/minecraft-patches/features/0027-Leaves-Jade-Protocol.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0026-Leaves-Jade-Protocol.patch rename to lophine-server/minecraft-patches/features/0027-Leaves-Jade-Protocol.patch diff --git a/lophine-server/minecraft-patches/features/0027-Leaves-Xaero-Map-Protocol.patch b/lophine-server/minecraft-patches/features/0028-Leaves-Xaero-Map-Protocol.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0027-Leaves-Xaero-Map-Protocol.patch rename to lophine-server/minecraft-patches/features/0028-Leaves-Xaero-Map-Protocol.patch diff --git a/lophine-server/minecraft-patches/features/0028-Leaves-Support-REI-protocol.patch b/lophine-server/minecraft-patches/features/0029-Leaves-Support-REI-protocol.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0028-Leaves-Support-REI-protocol.patch rename to lophine-server/minecraft-patches/features/0029-Leaves-Support-REI-protocol.patch diff --git a/lophine-server/minecraft-patches/features/0029-Leaves-Wool-Hopper-Counter.patch b/lophine-server/minecraft-patches/features/0030-Leaves-Wool-Hopper-Counter.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0029-Leaves-Wool-Hopper-Counter.patch rename to lophine-server/minecraft-patches/features/0030-Leaves-Wool-Hopper-Counter.patch diff --git a/lophine-server/minecraft-patches/features/0030-Leaves-Alternative-block-placement-Protocol.patch b/lophine-server/minecraft-patches/features/0031-Leaves-Alternative-block-placement-Protocol.patch similarity index 100% rename from lophine-server/minecraft-patches/features/0030-Leaves-Alternative-block-placement-Protocol.patch rename to lophine-server/minecraft-patches/features/0031-Leaves-Alternative-block-placement-Protocol.patch diff --git a/lophine-server/paper-patches/features/0005-LeavesHooks.patch b/lophine-server/paper-patches/features/0005-LeavesHooks.patch new file mode 100644 index 0000000..3026308 --- /dev/null +++ b/lophine-server/paper-patches/features/0005-LeavesHooks.patch @@ -0,0 +1,13 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Helvetica Volubi +Date: Sun, 16 Nov 2025 17:47:42 +0800 +Subject: [PATCH] LeavesHooks + + +diff --git a/src/main/resources/META-INF/services/ca.spottedleaf.moonrise.common.PlatformHooks b/src/main/resources/META-INF/services/ca.spottedleaf.moonrise.common.PlatformHooks +index e57c3ca79677b1dfe7cf3db36f0406de7ea5bd0a..86edd824ec42e550dd1419fd57d93a21fe2d648d 100644 +--- a/src/main/resources/META-INF/services/ca.spottedleaf.moonrise.common.PlatformHooks ++++ b/src/main/resources/META-INF/services/ca.spottedleaf.moonrise.common.PlatformHooks +@@ -1 +1 @@ +-ca.spottedleaf.moonrise.paper.PaperHooks ++org.leavesmc.leaves.region.LeavesHooks diff --git a/lophine-server/src/main/java/org/leavesmc/leaves/region/LeavesHooks.java b/lophine-server/src/main/java/org/leavesmc/leaves/region/LeavesHooks.java new file mode 100644 index 0000000..1f13491 --- /dev/null +++ b/lophine-server/src/main/java/org/leavesmc/leaves/region/LeavesHooks.java @@ -0,0 +1,37 @@ +/* + * This file is part of Leaves (https://github.com/LeavesMC/Leaves) + * + * Leaves is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Leaves is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Leaves. If not, see . + */ + +package org.leavesmc.leaves.region; + +import ca.spottedleaf.moonrise.paper.PaperHooks; +import net.minecraft.server.level.ServerLevel; +import net.minecraft.server.level.ServerPlayer; +import net.minecraft.world.level.chunk.LevelChunk; + +public final class LeavesHooks extends PaperHooks { + + @Override + public String getBrand() { + return "Lophine"; // Lophine - rebrand + } + + @Override + public void onChunkWatch(ServerLevel world, LevelChunk chunk, ServerPlayer player) { + super.onChunkWatch(world, chunk, player); + org.leavesmc.leaves.protocol.servux.ServuxStructuresProtocol.onStartedWatchingChunk(player, chunk); // servux + } +}