Paper/paper-server/patches/sources/net/minecraft
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
..
advancements Lazily create LootContext for criterions 2023-11-21 12:16:39 -03:00
commands Fix cmd permission levels for command blocks 2022-01-24 15:32:02 -08:00
core Fix possible StackOverflowError and NPE for some dispenses 2022-10-29 17:02:42 -07:00
nbt Validate ResourceLocation in NBT reading 2024-01-04 13:49:14 +01:00
network Optimize VarInts 2023-10-28 19:46:21 -04:00
resources Validate ResourceLocation in NBT reading 2024-01-04 13:49:14 +01:00
server Fix creation of invalid block entity during world generation 2024-03-30 21:06:10 +01:00
stats Fix spigot's Forced-Stats 2023-08-28 01:32:39 +01:00
util Validate usernames 2022-01-01 05:19:37 -08:00
world Fix possible StackOverflowError and NPE for some dispenses 2022-10-29 17:02:42 -07:00
ChatFormatting.java.patch Adventure 2021-01-29 17:54:03 +01:00
CrashReport.java.patch Disable memory reserve allocating 2024-01-18 23:25:09 +01:00
CrashReportCategory.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
Util.java.patch Remove client-side code using deprecated for removal AccessController 2021-11-26 15:09:58 -08:00