From 769a579cb0f61467b3ce0e0ae0e5a2bff352f524 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 1 Jun 2021 18:06:50 +1000 Subject: [PATCH] SPIGOT-6482: Baby piglins will pick up more items than vanilla --- .../net/minecraft/world/entity/monster/piglin/PiglinAI.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);