Paper/paper-server/patches/sources/net/minecraft/world
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
..
damagesource Fix DamageSource API 2024-03-09 14:13:04 -08:00
effect Fire EntityChangeBlockEvent in more places 2021-08-09 20:45:46 -07:00
entity Fix DamageSource API 2024-03-09 14:13:04 -08:00
food EntityRegainHealthEvent isFastRegen API 2016-04-22 01:43:11 -05:00
inventory Add CartographyItemEvent 2024-04-07 16:52:42 -04:00
item Add PlayerTradeEvent and PlayerPurchaseEvent 2020-07-02 16:12:10 -07:00
level Fix possible StackOverflowError and NPE for some dispenses 2022-10-29 17:02:42 -07:00
scores Don't save empty scoreboard teams to scoreboard.dat 2016-05-07 23:33:08 -04:00
BossEvent.java.patch Adventure 2021-01-29 17:54:03 +01:00
CompoundContainer.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Container.java.patch Add missing InventoryHolders to inventories 2022-01-24 00:09:02 -08:00
RandomizableContainer.java.patch Validate ResourceLocation in NBT reading 2024-01-04 13:49:14 +01:00
SimpleContainer.java.patch Fix inventories returning null Locations 2023-03-15 18:29:45 -07:00