mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
c90fc43eb8
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. |
||
---|---|---|
.. | ||
com/mojang | ||
net/minecraft |