mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2026-01-04 15:41:40 +00:00
Upstream has released updates that appear to apply and compile correctly Leaves Changes: LeavesMC/Leaves@9c12d296 Update Paper LeavesMC/Leaves@357a03df Fix LitematicaEasyPlaceProtocol * 2 LeavesMC/Leaves@46cccfc3 Fix #609 & #612, add maxNbt in litematics, improve protocol invoker (#611) LeavesMC/Leaves@c245ee67 Remove a useless patch (#614) LeavesMC/Leaves@eb3d87b8 feat: finish MOVE_ITEM_NEW_PACKET, fix rei protocol packet transformer (#615) LeavesMC/Leaves@6a2b9ee6 Fix long config (#617) LeavesMC/Leaves@2c9f83c7 fix: fix a bug in redstoneShearsWrench (#621) LeavesMC/Leaves@9cba2ea2 Fix #622 (#624) LeavesMC/Leaves@1242a2a6 Update Paper and Leavesclip LeavesMC/Leaves@cadc1269 Fix replay api and add null check in botlist (#627) LeavesMC/Leaves@e68eb3fe Chat command max length LeavesMC/Leaves@4c4712d3 Fix endermite spawn (#632) LeavesMC/Leaves@c581f131 Some fix, and clear
31 lines
1.7 KiB
Diff
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: c581f1311edc4787b08fe31c5a9996ab9b369a7c
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
index f81c0fef5428ec6ec98c10e0b520496dc68f8961..01de5ccfe7e99936ae503f36d9abb02f4f134bc5 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;
|
|
|