From 8ca94e381138d60f8ed5f78b27bb5a9d15ffd0f4 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Tue, 18 Apr 2023 01:51:40 -0400 Subject: [PATCH] Fix build --- README.md | 5 ++--- patches/server/0039-Leaves-Jade-Protocol.patch | 12 ++++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e0b74130..8f9eb351 100644 --- a/README.md +++ b/README.md @@ -60,11 +60,10 @@ Thanks to these projects below. Leaf just mix some of their patches together. If - [Purpur](https://github.com/PurpurMC/Purpur) - [KeYi](https://github.com/KeYiMC/KeYi) (R.I.P.) [(Backup)](https://github.com/MikuMC/KeYiBackup) - [KTP](https://github.com/lynxplay/ktp) -- [Patina](https://github.com/PatinaMC/Patina) -- [Yatopia](https://github.com/YatopiaMC/Yatopia) - [Mirai](https://github.com/etil2jz/Mirai) - [Petal](https://github.com/Bloom-host/Petal) - [Carpet Fixes](https://github.com/fxmorin/carpet-fixes) -- [VMP](https://github.com/RelativityMC/VMP-fabric) +- [VMP](https://github.com/RelativityMC/VMP-fabric) - [Slice](https://github.com/Cryptite/Slice) - [Parchment](https://github.com/ProjectEdenGG/Parchment) +- [Leaves](https://github.com/LeavesMC/Leaves) diff --git a/patches/server/0039-Leaves-Jade-Protocol.patch b/patches/server/0039-Leaves-Jade-Protocol.patch index f71c2477..b5877ae5 100644 --- a/patches/server/0039-Leaves-Jade-Protocol.patch +++ b/patches/server/0039-Leaves-Jade-Protocol.patch @@ -9,10 +9,18 @@ Original project: https://github.com/LeavesMC/Leaves This patch is Powered by Jade(https://github.com/Snownee/Jade) diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java -index 441d5ed7f48a3725a0a50441eaa8ab68ce1025d8..8a0bfdda3800ef41f62b1fd9a7c3dc80ecdac5b8 100644 +index 441d5ed7f48a3725a0a50441eaa8ab68ce1025d8..31c80d1bce5e4721d8d0f45c28fbb3f5842416d4 100644 --- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java +++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java -@@ -3619,6 +3619,9 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic +@@ -248,6 +248,7 @@ import org.bukkit.inventory.CraftingInventory; + import org.bukkit.inventory.EquipmentSlot; + import org.bukkit.inventory.InventoryView; + import org.bukkit.inventory.SmithingInventory; ++import top.leavesmc.leaves.util.ProtocolUtils; + // CraftBukkit end + + public class ServerGamePacketListenerImpl implements ServerPlayerConnection, TickablePacketListener, ServerGamePacketListener { +@@ -3619,6 +3620,9 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic } // Paper end this.cserver.getMessenger().dispatchIncomingMessage(this.player.getBukkitEntity(), packet.identifier.toString(), data);