Skip to content

Commit eb877c9

Browse files
committed
fix(mixin): It's not static on 1.20.4
1 parent 55fe6cf commit eb877c9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

cobblegen/src/main/java/io/github/null2264/cobblegen/mixin/network/loader/neoforge/NetworkRegistryMixin.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ public abstract class NetworkRegistryMixin {
1919
at = @At("HEAD"),
2020
cancellable = true
2121
)
22-
private static void validateCobbleGenC2S(
22+
private
23+
#if MC>=12005
24+
static
25+
#endif
26+
void validateCobbleGenC2S(
2327
net.minecraft.network.protocol.Packet<?> packet,
2428
net.minecraft.network.protocol.common.ServerCommonPacketListener listener,
2529
#if MC<12005
@@ -48,7 +52,11 @@ private static void validateCobbleGenC2S(
4852
at = @At("HEAD"),
4953
cancellable = true
5054
)
51-
private static void validateCobbleGenS2C(
55+
private
56+
#if MC>=12005
57+
static
58+
#endif
59+
void validateCobbleGenS2C(
5260
net.minecraft.network.protocol.Packet<?> packet,
5361
net.minecraft.network.protocol.common.ClientCommonPacketListener listener,
5462
#if MC<12005

0 commit comments

Comments
 (0)