fix crash with non-unimix mixin loaders

This commit is contained in:
FalsePattern committed 2025-01-16 13:25:02 +01:00
1 parent 2fb64c5c74
commit c17386dd97
1 file changed
+3 -1
@@ -30,9 +30,11 @@ public abstract class S22PacketMultiBlockChangeMixin implements CustomPacketMult
private S23PacketBlockChange[] subPackets;
@SuppressWarnings("DefaultAnnotationParam")
@Inject(method = "<init>(I[SLnet/minecraft/world/chunk/Chunk;)V",
at = @At(value = "FIELD",
target = "Lnet/minecraft/network/play/server/S22PacketMultiBlockChange;field_148925_b:Lnet/minecraft/world/ChunkCoordIntPair;"),
target = "Lnet/minecraft/network/play/server/S22PacketMultiBlockChange;field_148925_b:Lnet/minecraft/world/ChunkCoordIntPair;",
unsafe = true),
require = 1)
private void suppressConstructor(int p_i45181_1_, short[] crammedPositions, Chunk chunk, CallbackInfo ci) {
throw new IllegalStateException(