diff --git a/nms-patches/net/minecraft/world/entity/monster/piglin/PiglinAI.patch b/nms-patches/net/minecraft/world/entity/monster/piglin/PiglinAI.patch index b825db994..c48a2789a 100644 --- a/nms-patches/net/minecraft/world/entity/monster/piglin/PiglinAI.patch +++ b/nms-patches/net/minecraft/world/entity/monster/piglin/PiglinAI.patch @@ -79,7 +79,7 @@ Item item = itemstack.getItem(); - if (a(item)) { -+ if (a(entitypiglin, itemstack)) { // CraftBukkit - Changes to allow for custom payment in bartering ++ if (isLovedByPiglin(item, entitypiglin)) { // CraftBukkit - Changes to allow for custom payment in bartering entitypiglin.getBehaviorController().removeMemory(MemoryModuleType.TIME_TRYING_TO_REACH_ADMIRE_ITEM); c(entitypiglin, itemstack); d((EntityLiving) entitypiglin);