Skip to content

Commit c17386d

Browse files
committed
fix crash with non-unimix mixin loaders
1 parent 2fb64c5 commit c17386d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/falsepattern/chunk/internal/mixin/mixins/common/vanilla/S22PacketMultiBlockChangeMixin.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ public abstract class S22PacketMultiBlockChangeMixin implements CustomPacketMult
3030

3131
private S23PacketBlockChange[] subPackets;
3232

33+
@SuppressWarnings("DefaultAnnotationParam")
3334
@Inject(method = "<init>(I[SLnet/minecraft/world/chunk/Chunk;)V",
3435
at = @At(value = "FIELD",
35-
target = "Lnet/minecraft/network/play/server/S22PacketMultiBlockChange;field_148925_b:Lnet/minecraft/world/ChunkCoordIntPair;"),
36+
target = "Lnet/minecraft/network/play/server/S22PacketMultiBlockChange;field_148925_b:Lnet/minecraft/world/ChunkCoordIntPair;",
37+
unsafe = true),
3638
require = 1)
3739
private void suppressConstructor(int p_i45181_1_, short[] crammedPositions, Chunk chunk, CallbackInfo ci) {
3840
throw new IllegalStateException(

0 commit comments

Comments
 (0)