Paper/patches
Bjarne Koll 508a295b44
Only erase allay memory on non-item targets (#9570)
* 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>
2023-08-05 17:31:10 -07:00
..
api Updated Upstream (Bukkit/CraftBukkit) (#9485) 2023-08-05 17:21:59 -07:00
removed Finish updating chunk system patch 2023-06-08 16:04:53 -07:00
server Only erase allay memory on non-item targets (#9570) 2023-08-05 17:31:10 -07:00