13
0
geforkt von Mirrors/Paper
Paper/patches
Bjarne Koll f9c9ac2e65 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-06 02:31:10 +02:00
..
api Updated Upstream (Bukkit/CraftBukkit) (#9485) 2023-08-05 17:21:59 -07:00
server Only erase allay memory on non-item targets (#9570) 2023-08-06 02:31:10 +02:00