13
0
geforkt von Mirrors/Paper
Paper/paper-server/patches/sources/net/minecraft/world/level
Shane Freeder 1d1c5a4493 use CB BlockState implementations for captured blocks
When modifying the world, CB will store a copy of the affected
blocks in order to restore their state in the case that the event
is cancelled. This change only modifies the collection of blocks
in the world by normal means, e.g. not during tree population,
as the potentially marginal overheads would serve no advantage.

CB was using a CraftBlockState for all blocks, which causes issues
should any block that uses information beyond a data ID would suffer
from missing information, e.g. Skulls.

By using CBs CraftBlock#getState(), we will maintain a proper copy of
the blockstate that will be valid for restoration, as opposed to dropping
information on restoration when the event is cancelled.
2017-11-16 12:12:41 +00:00
..
block Entity#fromMobSpawner() 2017-06-18 18:17:05 -05:00
border Bound Treasure Maps to World Border 2016-12-20 15:15:11 -05:00
chunk Bound Treasure Maps to World Border 2016-12-20 15:15:11 -05:00
dimension/end Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
entity MC Utils 2016-03-28 20:55:47 -04:00
gameevent Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
levelgen CB fixes 2022-02-25 07:14:48 -08:00
material Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
pathfinder Do not load chunks for Pathfinding 2016-03-31 19:17:58 -04:00
portal Add configurable portal search radius 2016-03-03 02:46:17 -06:00
redstone Prevent NoClassDefError crash and notify on crash 2014-04-21 12:43:08 +01:00
saveddata/maps Adventure 2021-01-29 17:54:03 +01:00
storage Configurable Cartographer Treasure Maps 2016-12-20 15:26:27 -05:00
BaseCommandBlock.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
BaseSpawner.java.patch Reset spawner timer when spawner event is cancelled 2017-07-31 01:45:19 -05:00
BlockGetter.java.patch MC Utils 2016-03-28 20:55:47 -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 Player affects spawning API 2016-03-01 14:47:52 -06:00
GameRules.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Level.java.patch use CB BlockState implementations for captured blocks 2017-11-16 12:12:41 +00: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 exception reporting event 2016-03-03 03:15:41 -06:00
PathNavigationRegion.java.patch MC Utils 2016-03-28 20:55:47 -04:00
ServerExplosion.java.patch Disable explosion knockback 2016-03-02 14:48:03 -06:00
ServerLevelAccessor.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00