PaperMC/paper-server
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
..
patches/sources Fix possible StackOverflowError and NPE for some dispenses 2022-10-29 17:02:42 -07:00
src Fix possible StackOverflowError and NPE for some dispenses 2022-10-29 17:02:42 -07:00
.gitignore Setup Gradle project 2020-12-10 20:54:19 -08:00
build.gradle.kts Add support for Proxy Protocol 2022-04-07 16:13:39 +02:00
LGPL.txt
LICENCE.txt