diff --git a/patches/server/0111-Replay-Mod-API.patch b/patches/server/0111-Replay-Mod-API.patch index 595e3609..d489ffd1 100644 --- a/patches/server/0111-Replay-Mod-API.patch +++ b/patches/server/0111-Replay-Mod-API.patch @@ -642,12 +642,13 @@ index 0000000000000000000000000000000000000000..46a86cfce4aa859b8de7c126c22f64a9 +} diff --git a/src/main/java/top/leavesmc/leaves/replay/Recorder.java b/src/main/java/top/leavesmc/leaves/replay/Recorder.java new file mode 100644 -index 0000000000000000000000000000000000000000..925ee5005e74f4e61f7d76ad06e5eb80bdf3e92e +index 0000000000000000000000000000000000000000..da1aa40293843de8d2b97e8003840bf96f44613b --- /dev/null +++ b/src/main/java/top/leavesmc/leaves/replay/Recorder.java -@@ -0,0 +1,226 @@ +@@ -0,0 +1,232 @@ +package top.leavesmc.leaves.replay; + ++import io.netty.channel.local.LocalChannel; +import net.minecraft.SharedConstants; +import net.minecraft.network.Connection; +import net.minecraft.network.ConnectionProtocol; @@ -706,6 +707,7 @@ index 0000000000000000000000000000000000000000..925ee5005e74f4e61f7d76ad06e5eb80 + this.recorderOption = recorderOption; + this.metaData = new RecordMetaData(); + this.replayFile = new ReplayFile(replayFile); ++ this.channel = new LocalChannel(); + } + + public void start() { @@ -726,6 +728,10 @@ index 0000000000000000000000000000000000000000..925ee5005e74f4e61f7d76ad06e5eb80 + } + } + ++ @Override ++ public void flushChannel() { ++ } ++ + public void stop() { + stopped = true; + }