13
0
geforkt von Mirrors/Paper

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

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2021-06-01 18:06:50 +10:00
Ursprung d5fb854202
Commit 14af2c0a70

Datei anzeigen

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