9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-30 20:39:21 +00:00
Files
Leaf/leaf-server/paper-patches/features/0027-Leaves-Protocol-Core.patch
Dreeam 242c1a0592 Updated Upstream (Leaves)
Upstream has released updates that appear to apply and compile correctly

Leaves Changes:
LeavesMC/Leaves@13c4e25e fix: fix bed easy place (#710)
LeavesMC/Leaves@0ad976f6 Update Paper, and not pre
LeavesMC/Leaves@3feea8e4 Try to fix replay api crash (#713)
LeavesMC/Leaves@2915edc2 Fix replay api crash with return-nether-portal-fix (#716)
LeavesMC/Leaves@13651b11 Update Paper
LeavesMC/Leaves@513768c9 Merge Paper#11831 (#695)
LeavesMC/Leaves@ec71a2bd fix: fix sleeping block entity (#723)
LeavesMC/Leaves@b16a74c6 feat: remove some features(#724) (#725)
LeavesMC/Leaves@ff184c1d Modify end void rings generation (#722)
LeavesMC/Leaves@074f57b5 Update Paper
LeavesMC/Leaves@decc9752 feat: add more features declaration (#732)
LeavesMC/Leaves@a82724fc Update mc technical mode (#734)
LeavesMC/Leaves@9c8a2fc7 fix: fix hopper event (#739)
LeavesMC/Leaves@adb02a59 fix: remove debug output (#740)
LeavesMC/Leaves@4ade1001 Lithium Equipment Tracking (#736)
LeavesMC/Leaves@d907002a Do not throw when bot nbt is illegal (#746)
LeavesMC/Leaves@9ecdfe1e Do not check NaN values in entities (#742) (#749)
LeavesMC/Leaves@5974eea2 Update Paper
LeavesMC/Leaves@5083948a Update Update Paper
LeavesMC/Leaves@93311671 Fix syncmatica path error, to fix #747 (#748)
2025-11-23 01:51:20 -05:00

31 lines
1.7 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: violetc <58360096+s-yh-china@users.noreply.github.com>
Date: Tue, 26 Sep 2023 19:00:41 +0800
Subject: [PATCH] Leaves: Protocol Core
Original license: GPLv3
Original project: https://github.com/LeavesMC/Leaves
Commit: 93311671d27c3541d6237be20c78d9ea665a995f
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index ff170c2d0c0f517cacff14ae58bc55757ec63066..8d2003d458abcaae38c68317fb073ae4ffafd321 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -512,6 +512,7 @@ public final class CraftServer implements Server {
this.potionBrewer = new io.papermc.paper.potion.PaperPotionBrewer(console); // Paper - custom potion mixes
datapackManager = new io.papermc.paper.datapack.PaperDatapackManager(console.getPackRepository()); // Paper
this.spark = new io.papermc.paper.SparksFly(this); // Paper - spark
+ org.leavesmc.leaves.protocol.core.LeavesProtocolManager.init(); // Leaves - protocol
}
public boolean getCommandBlockOverride(String command) {
@@ -1101,6 +1102,7 @@ public final class CraftServer implements Server {
org.purpurmc.purpur.PurpurConfig.registerCommands(); // Purpur - Purpur config files
this.overrideAllCommandBlockCommands = this.commandsConfiguration.getStringList("command-block-overrides").contains("*");
this.ignoreVanillaPermissions = this.commandsConfiguration.getBoolean("ignore-vanilla-permissions");
+ org.leavesmc.leaves.protocol.core.LeavesProtocolManager.handleServerReload(); // Leaves - protocol
int pollCount = 0;