Skip to content

Commit

Permalink
Fix #35
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Apr 20, 2024
1 parent 0513c05 commit 1e35eae
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package dev.tonimatas.packetfixer.mixins;

import net.minecraft.network.FriendlyByteBuf;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;

@Mixin(value = FriendlyByteBuf.class, priority = 9999)
public abstract class FriendlyByteBufMixin {
@ModifyConstant(method = "readNbt()Lnet/minecraft/nbt/CompoundTag;", constant = @Constant(longValue = 2097152L))
public long newSize(long constant) {
return Long.MAX_VALUE;
}
}

This file was deleted.

2 changes: 1 addition & 1 deletion common/src/main/resources/packetfixer-common.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ClientboundCustomPayloadPacketMixin",
"ClientboundCustomQueryPacketMixin",
"CompressionDecoderMixin",
"NbtAccounterMixin",
"FriendlyByteBufMixin",
"PacketEncoderMixin",
"ServerboundCustomPayloadPacketMixin",
"ServerboundCustomQueryPacketMixin",
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

# Mod Properties
modVersion=1.3.0
modVersion=1.3.1

# Minecraft
minecraftVersion=1.20.1
Expand Down

0 comments on commit 1e35eae

Please sign in to comment.