Skip to content

[Bug] Mixin incompatible with Forgified Fabric API #1

@DeliciousBread481

Description

@DeliciousBread481

Could you fix it? asking ffapi for help?
When the Fisherman Villager level up to Master
The game will crash and have a chance to get a Ticking Entity error
Description: Unexpected error

org.spongepowered.asm.mixin.injection.throwables.InjectionError: LVT in net/minecraft/world/entity/npc/VillagerTrades$EmeraldsForVillagerTypeItem::m_213663_(Lnet/minecraft/world/entity/Entity;Lnet/minecraft/util/RandomSource;)Lnet/minecraft/world/item/trading/MerchantOffer; has incompatible changes at opcode 34 in callback fabric-object-builder-v1.mixins.json:TradeOffersTypeAwareBuyForOneEmeraldFactoryMixin from mod fabric_object_builder_api_v1->@Inject::failOnNullItem(Lnet/minecraft/world/entity/Entity;Lnet/minecraft/util/RandomSource;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;Lnet/minecraft/world/item/ItemStack;)V.
Expected: [Lnet/minecraft/world/item/ItemStack;]
Found: [Lnet/minecraft/world/item/Item;]
Available: [Lnet/minecraft/world/item/Item;, Lnet/minecraft/world/item/ItemStack;]
at net.minecraft.world.entity.npc.VillagerTrades$EmeraldsForVillagerTypeItem.handler$dfp000$fabric_object_builder_api_v1$failOnNullItem$missing(VillagerTrades.java) ~[client-1.20.1-20230612.114412-srg.jar%23302!/:?] {re:mixin,pl:accesstransformer:B,pl:connector_pre_launch:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:fabric-object-builder-v1.mixins.json:TradeOffersTypeAwareBuyForOneEmeraldFactoryMixin from mod fabric_object_builder_api_v1,pl:mixin:A,pl:connector_pre_launch:A}

crash-2025-03-09_22.18.18-client.txt

latest.log

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions