fix-bots-for-new-networky-bits
* override and no-op setListener() in FakeClientConnection * fixes error spawning bots.
This commit is contained in:
1 parent
60e6dcd633
commit
cd37140b85
1 file changed
+6
@@ -3,6 +3,7 @@ package carpet.patches;
|
||||
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 class FakeClientConnection extends Connection
|
||||
public void handleDisconnection()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setListener(PacketListener packetListener)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user