Paper/paper-server/src
Jake Potrebic 6c400a907b Fix possible StackOverflowError and NPE for some dispenses
For saddles, carpets, horse armor, and chests for horse-likes
a BlockDispenseEvent handler that always mutated the item without
changing the type would result in a SO error because when it went
to find the replacement dispense behavior (since the item "changed")
it didn't properly handle if the replacement was the same instance
of dispense behavior.

Additionally equippable mob heads, wither skulls, and carved pumpkins
are subject to the same possible error.

Furthermore since 1.21.2, the DISPENSER_REGISTRY map doesn't have a default
return value anymore and some dispense behaviors like equippable and
regular items will not have a defined behavior in that map and might throw
a NPE in that case.
2022-10-29 17:02:42 -07:00
..
assembly Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
log4jPlugins/java/io/papermc/paper Rewrite LogEvents to contain the source jars in stack traces 2021-07-10 11:12:30 +02:00
main Fix possible StackOverflowError and NPE for some dispenses 2022-10-29 17:02:42 -07:00
test Add Lifecycle Event system 2023-07-18 17:49:38 -07:00