Skip to content

Commit

Permalink
Fixed multi-target mixin. Again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Estecka committed Nov 7, 2024
1 parent 80a5974 commit 9ddb7d8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ public class TradeOfferFactoryWrapper
{
@WrapOperation(
require=1, // 1 *per-class*
remap=false,
method={
/* MerchantEntity.fillRecipesFromPool */ "method_19170(Lnet/minecraft/village/TradeOfferList;[Lnet/minecraft/village/TradeOffers$Factory;I)V",
/* WanderingTraderEntity.fillRecipes */ "method_7237()V",
/* TypedWrapperFactory.create */ "method_7246(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/village/TradeOffer;",
"method_19170", "fillRecipesFromPool", // MerchantEntity
"method_7237", "fillRecipes", // WanderingTraderEntity
"method_7246", "create", // TypedWrapperFactory
},
at=@At(
value="INVOKE",
remap=true,
target="net/minecraft/village/TradeOffers$Factory.create(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/village/TradeOffer;"
)
)
Expand Down

0 comments on commit 9ddb7d8

Please sign in to comment.