diff options
author | Linnea Gräf <nea@nea.moe> | 2025-01-30 20:43:02 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-01-30 20:43:02 +0100 |
commit | c2b0f8e5f8c9f4c95d85e286d49df04a9f90f279 (patch) | |
tree | afdac34c3fce1ab06f7f822650ae7660f405efd9 /src | |
parent | 98c52ff7978acc8a1e195033920240808b17d634 (diff) | |
download | Firmament-c2b0f8e5f8c9f4c95d85e286d49df04a9f90f279.tar.gz Firmament-c2b0f8e5f8c9f4c95d85e286d49df04a9f90f279.tar.bz2 Firmament-c2b0f8e5f8c9f4c95d85e286d49df04a9f90f279.zip |
fix: Remove unneeded lenient UUID serialization
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/moe/nea/firmament/mixins/LenientProfileComponentPatch.java | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main/java/moe/nea/firmament/mixins/LenientProfileComponentPatch.java b/src/main/java/moe/nea/firmament/mixins/LenientProfileComponentPatch.java deleted file mode 100644 index 76b34ba..0000000 --- a/src/main/java/moe/nea/firmament/mixins/LenientProfileComponentPatch.java +++ /dev/null @@ -1,25 +0,0 @@ - -package moe.nea.firmament.mixins; - -import com.llamalad7.mixinextras.injector.ModifyExpressionValue; -import com.mojang.serialization.Codec; -import com.mojang.serialization.DataResult; -import com.mojang.serialization.Lifecycle; -import com.mojang.util.UndashedUuid; -import moe.nea.firmament.util.json.FirmCodecs; -import net.minecraft.component.type.ProfileComponent; -import net.minecraft.util.Uuids; -import org.objectweb.asm.Opcodes; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; - -import java.util.UUID; - -@Mixin(ProfileComponent.class) -public class LenientProfileComponentPatch { - // lambda in RecordCodecBuilder.create for BASE_CODEC - @ModifyExpressionValue(method = "method_57508", at = @At(value = "FIELD", opcode = Opcodes.GETSTATIC, target = "Lnet/minecraft/util/Uuids;INT_STREAM_CODEC:Lcom/mojang/serialization/Codec;")) - private static Codec<UUID> onStaticInit(Codec<UUID> original) { - return FirmCodecs.UUID_LENIENT_PREFER_INT_STREAM; - } -} |