Paper/paper-server/patches/sources
Bjarne Koll c90fc43eb8 Only erase allay memory on non-item targets
Spigot incorrectly instanceOf checks the EntityTargetEvent#getTarget
against the internal ItemEntity type and removes the nearest wanted item
memory if said instanceOf check fails, (which is always the case)
causing allays to behave differently as they constantly lose their
target item.

This commit fixes the faulty behaviour by instance performing a check
against the CraftItem type.
2023-08-04 15:53:36 +02:00
..
com/mojang Avoid Lazy Initialization for Enum Fields 2023-05-14 00:47:28 -04:00
net/minecraft Only erase allay memory on non-item targets 2023-08-04 15:53:36 +02:00