13
0
geforkt von Mirrors/Paper
Paper/paper-server/patches/sources/net/minecraft/world/level
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
..
biome Optimize Biome Mob Lookups for Mob Spawning 2018-09-12 21:47:01 -04:00
block Fix possible StackOverflowError and NPE for some dispenses 2022-10-29 17:02:42 -07:00
border Add worldborder events 2021-01-04 22:40:34 -08:00
chunk Fix creation of invalid block entity during world generation 2024-03-30 21:06:10 +01:00
dimension/end Do crystal-portal proximity check before entity lookup 2023-08-15 21:04:55 +02:00
entity Improve and expand AsyncCatcher 2021-08-25 20:17:12 -07:00
gameevent fix MapLike spam for missing key 'selector' 2023-06-14 13:17:40 -07:00
levelgen Don't fire sync events during worldgen 2023-11-23 10:33:25 -08:00
material Determine lava and water fluid explosion resistance by their block explosion resistance 2023-07-13 21:32:13 +01:00
pathfinder Mob Pathfinding API 2018-09-09 13:30:00 -04:00
portal Fix a bunch of vanilla bugs 2022-07-11 11:56:41 -07:00
redstone Call BlockRedstoneEvents properly 2023-09-13 05:46:10 +02:00
saveddata/maps Limit item frame cursors on maps 2021-05-26 15:09:33 -07:00
storage Preserve overstacked loot 2021-06-21 23:21:58 -04:00
BaseCommandBlock.java.patch Don't broadcast messages to command blocks 2022-06-16 14:22:56 -07:00
BaseSpawner.java.patch Ignore impossible spawn tick 2022-02-12 23:42:48 +08:00
BlockGetter.java.patch Add predicate for blocks when raytracing 2023-09-06 19:24:16 -04:00
ChunkPos.java.patch MC Utils 2016-03-28 20:55:47 -04:00
ClipContext.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
EmptyBlockGetter.java.patch MC Utils 2016-03-28 20:55:47 -04:00
EntityGetter.java.patch check global player list where appropriate 2022-11-22 13:16:01 -08:00
GameRules.java.patch Use array for gamerule storage 2021-05-09 16:49:49 -05:00
Level.java.patch Properly handle experience dropping on block break 2023-12-30 15:00:06 -05:00
LevelAccessor.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
LevelReader.java.patch MC Utils 2016-03-28 20:55:47 -04:00
LevelWriter.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
NaturalSpawner.java.patch Add '/paper mobcaps' and '/paper playermobcaps' 2021-08-16 01:31:54 -05:00
PathNavigationRegion.java.patch MC Utils 2016-03-28 20:55:47 -04:00
ServerExplosion.java.patch Prevent headless pistons from being created 2020-08-14 14:44:14 -05:00
ServerLevelAccessor.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
StructureManager.java.patch Fix swamp hut cat generation deadlock 2022-03-12 06:31:13 -08:00