SPIGOT-6482: Baby piglins will pick up more items than vanilla

This commit is contained in:
md_5 2021-06-01 18:06:50 +10:00
parent a0149bf165
commit 769a579cb0
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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);