Skip to content

Commit

Permalink
fix a server crash
Browse files Browse the repository at this point in the history
how has this been fine until now
  • Loading branch information
TropheusJ committed Apr 7, 2024
1 parent 85b5bef commit e120b38
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import com.simibubi.create.foundation.mixin.fabric.BlockableEventLoopAccessor;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;

import org.jetbrains.annotations.Nullable;

import me.pepperbell.simplenetworking.C2SPacket;
Expand Down Expand Up @@ -29,6 +32,7 @@ public final void encode(FriendlyByteBuf buffer) {
}

@Override
@Environment(EnvType.CLIENT)
public void handle(Minecraft client, ClientPacketListener listener, PacketSender responseSender, SimpleChannel channel) {
handle(new Context(client, listener, null));
}
Expand Down

0 comments on commit e120b38

Please sign in to comment.