From a4b5632f0f690800fc4222bf7475a2ea50745504 Mon Sep 17 00:00:00 2001 From: silnarm Date: Fri, 4 Aug 2023 21:52:00 +1000 Subject: [PATCH] fix-bots-for-new-networky-bits * override and no-op setListener() in FakeClientConnection * fixes error spawning bots. --- src/main/java/carpet/patches/FakeClientConnection.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/carpet/patches/FakeClientConnection.java b/src/main/java/carpet/patches/FakeClientConnection.java index bb9e9ea84e..5a7f8bafab 100644 --- a/src/main/java/carpet/patches/FakeClientConnection.java +++ b/src/main/java/carpet/patches/FakeClientConnection.java @@ -3,6 +3,7 @@ import carpet.fakes.ClientConnectionInterface; import io.netty.channel.embedded.EmbeddedChannel; import net.minecraft.network.Connection; +import net.minecraft.network.PacketListener; import net.minecraft.network.protocol.PacketFlow; public class FakeClientConnection extends Connection @@ -24,4 +25,9 @@ public void setReadOnly() public void handleDisconnection() { } + + @Override + public void setListener(PacketListener packetListener) + { + } } \ No newline at end of file