9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-28 19:39:22 +00:00

Fix replay mod api

This commit is contained in:
violetc
2023-08-08 23:12:30 +08:00
parent b50f77f2c7
commit d0e042a2e6
2 changed files with 8 additions and 6 deletions

View File

@@ -817,10 +817,10 @@ index 0000000000000000000000000000000000000000..2484e036aa87cb40e31b360988e26380
+}
diff --git a/src/main/java/top/leavesmc/leaves/replay/RecorderOption.java b/src/main/java/top/leavesmc/leaves/replay/RecorderOption.java
new file mode 100644
index 0000000000000000000000000000000000000000..87644f60a8215bc4037689fe4155e463eb651dfa
index 0000000000000000000000000000000000000000..104fdef25c4a5f36e8114220c44591cc53a1490b
--- /dev/null
+++ b/src/main/java/top/leavesmc/leaves/replay/RecorderOption.java
@@ -0,0 +1,54 @@
@@ -0,0 +1,55 @@
+package top.leavesmc.leaves.replay;
+
+import net.minecraft.network.protocol.Packet;
@@ -855,6 +855,7 @@ index 0000000000000000000000000000000000000000..87644f60a8215bc4037689fe4155e463
+ case RAIN -> RecordWeather.RAIN;
+ case CLEAR -> RecordWeather.CLEAR;
+ case THUNDER -> RecordWeather.THUNDER;
+ case NULL -> null;
+ };
+ return recorderOption;
+ }