Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Jan 21, 2024
1 parent cbc9920 commit 393a7e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions patches/server/0027-Leaves-Protocol-Core.patch
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ index 99fe3b9444c436eba0642135c7e19d147f7df022..9830f45484988e931ed1f47db24e131c

diff --git a/src/main/java/top/leavesmc/leaves/protocol/core/LeavesProtocol.java b/src/main/java/top/leavesmc/leaves/protocol/core/LeavesProtocol.java
new file mode 100644
index 0000000000000000000000000000000000000000..a2fb7ab4923ca7953e1d81e3da28d92a717a53f9
index 0000000000000000000000000000000000000000..f884f54f5a1f0665c290e014f088aae857cecef8
--- /dev/null
+++ b/src/main/java/top/leavesmc/leaves/protocol/core/LeavesProtocol.java
@@ -0,0 +1,14 @@
@@ -0,0 +1,12 @@
+package top.leavesmc.leaves.protocol.core;
+
+import java.lang.annotation.ElementType;
Expand All @@ -113,9 +113,7 @@ index 0000000000000000000000000000000000000000..a2fb7ab4923ca7953e1d81e3da28d92a
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface LeavesProtocol {
+
+ String[] namespace();
+
+}
diff --git a/src/main/java/top/leavesmc/leaves/protocol/core/LeavesProtocolManager.java b/src/main/java/top/leavesmc/leaves/protocol/core/LeavesProtocolManager.java
new file mode 100644
Expand Down
6 changes: 3 additions & 3 deletions patches/server/0030-Leaves-Xaero-Map-Protocol.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Original license: GPLv3
Original project: https://github.com/LeavesMC/Leaves

diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
index f498cfe2051fc8045c02bfaf4d98a3b46ce23aa6..828ada89fc42344e0567346ce9013ddad2e4e782 100644
index 9b8b0740a06b5b92fb3e905d7f8945c91ee637fb..d823423ae9e5273355c40e0f5b0e7b5ff4ef34c3 100644
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
@@ -1376,6 +1376,7 @@ public abstract class PlayerList {
Expand Down Expand Up @@ -46,7 +46,7 @@ index 472cbd7c35f8bbbdfdd2708f97b18f0422a1f648..3bfa1c7b7a4ad44224cde67fe3778fe8
public static String sentryDsn = "";
diff --git a/src/main/java/top/leavesmc/leaves/protocol/XaeroMapProtocol.java b/src/main/java/top/leavesmc/leaves/protocol/XaeroMapProtocol.java
new file mode 100644
index 0000000000000000000000000000000000000000..68dce7130b97270840405eadf0677ab5ffd6b3b8
index 0000000000000000000000000000000000000000..6bf670774564bc8c3272d5e08cc7c3530767f8d5
--- /dev/null
+++ b/src/main/java/top/leavesmc/leaves/protocol/XaeroMapProtocol.java
@@ -0,0 +1,41 @@
Expand All @@ -59,7 +59,7 @@ index 0000000000000000000000000000000000000000..68dce7130b97270840405eadf0677ab5
+import top.leavesmc.leaves.protocol.core.LeavesProtocol;
+import top.leavesmc.leaves.protocol.core.ProtocolUtils;
+
+@LeavesProtocol(namespaces = {"xaerominimap", "xaeroworldmap"})
+@LeavesProtocol(namespace = {"xaerominimap", "xaeroworldmap"})
+public class XaeroMapProtocol {
+
+ public static final String PROTOCOL_ID_MINI = "xaerominimap";
Expand Down

0 comments on commit 393a7e0

Please sign in to comment.