Skip to content

Commit

Permalink
fix-bots-for-new-networky-bits
Browse files Browse the repository at this point in the history
* override and no-op setListener() in FakeClientConnection
* fixes error spawning bots.
  • Loading branch information
silnarm authored and gnembon committed Aug 4, 2023
1 parent 60e6dcd commit cd37140
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/carpet/patches/FakeClientConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,4 +25,9 @@ public void setReadOnly()
public void handleDisconnection()
{
}

@Override
public void setListener(PacketListener packetListener)
{
}
}

0 comments on commit cd37140

Please sign in to comment.