From 14af2c0a7064bc0093f74825716a093c2ab25269 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 1 Jun 2021 18:06:50 +1000 Subject: [PATCH] SPIGOT-6482: Baby piglins will pick up more items than vanilla By: md_5 --- .../net/minecraft/world/entity/monster/piglin/PiglinAI.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/net/minecraft/world/entity/monster/piglin/PiglinAI.patch b/paper-server/nms-patches/net/minecraft/world/entity/monster/piglin/PiglinAI.patch index b825db994..c48a2789a 100644 --- a/paper-server/nms-patches/net/minecraft/world/entity/monster/piglin/PiglinAI.patch +++ b/paper-server/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);