diff --git a/patches/api/0009-Replay-Mod-API.patch b/patches/api/0009-Replay-Mod-API.patch index 5d9cca3d..474674b7 100644 --- a/patches/api/0009-Replay-Mod-API.patch +++ b/patches/api/0009-Replay-Mod-API.patch @@ -118,16 +118,16 @@ index 0000000000000000000000000000000000000000..4c2ef73e9668918d45d9e3ad250c7c20 +} diff --git a/src/main/java/top/leavesmc/leaves/replay/BukkitRecorderOption.java b/src/main/java/top/leavesmc/leaves/replay/BukkitRecorderOption.java new file mode 100644 -index 0000000000000000000000000000000000000000..0b4e41f9e2b04d1acf79a89b471528e50cd59a5d +index 0000000000000000000000000000000000000000..cc2deb0bfab358b23ab5c98a9d359e13c6565471 --- /dev/null +++ b/src/main/java/top/leavesmc/leaves/replay/BukkitRecorderOption.java -@@ -0,0 +1,16 @@ +@@ -0,0 +1,17 @@ +package top.leavesmc.leaves.replay; + +public class BukkitRecorderOption { + + // public int recordDistance = -1; -+ public BukkitRecordWeather forceWeather = null; ++ public BukkitRecordWeather forceWeather = BukkitRecordWeather.NULL; + public int forceDayTime = -1; + public boolean ignoreChat = false; + // public boolean ignoreItem = false; @@ -135,6 +135,7 @@ index 0000000000000000000000000000000000000000..0b4e41f9e2b04d1acf79a89b471528e5 + public enum BukkitRecordWeather { + CLEAR, + RAIN, -+ THUNDER ++ THUNDER, ++ NULL + } +} diff --git a/patches/server/0118-Replay-Mod-API.patch b/patches/server/0118-Replay-Mod-API.patch index cbdac0c1..333c9338 100644 --- a/patches/server/0118-Replay-Mod-API.patch +++ b/patches/server/0118-Replay-Mod-API.patch @@ -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; + }