Skip to content

Commit

Permalink
Merge branch '0.2' into 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Oct 4, 2023
2 parents 709ea19 + b4c6f4e commit 81948d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Expand Up @@ -32,6 +32,7 @@ public static ClientPacketHandler get() {

@Override
protected void onInitialChannelSyncPacketReceived() {
sendInitialChannelSyncPacket();
for (PacketSenderReadyCallback.Client callback : CallbackRegistry.CLIENT_PLAYER_JOIN) {
callback.onJoin(listener, this, Minecraft.getInstance());
}
Expand Down
Expand Up @@ -41,8 +41,6 @@ private void badpackets_removeClientPacketHandler(Component reason, CallbackInfo

@Inject(method = "handleCustomPayload", at = @At("HEAD"), cancellable = true)
private void badpackets_receiveS2CPacket(ClientboundCustomPayloadPacket packet, CallbackInfo ci) {
badpacket_packetHandler.sendInitialChannelSyncPacket();

if (!minecraft.isSameThread()) {
FriendlyByteBuf buf = packet.getData();
try {
Expand Down

0 comments on commit 81948d1

Please sign in to comment.