mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
508a295b44
* 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 loose their target item. This commit fixes the faulty behaviour by instance performing a check against the CraftItem type. * Reduce diff * fix typo --------- Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> |
||
---|---|---|
.. | ||
api | ||
removed | ||
server |