PaperMC/paper-server/patches/sources/net/minecraft
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
..
advancements Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
commands Add UnknownCommandEvent 2017-06-17 18:48:21 -04:00
core Paper Plugins 2022-07-06 23:00:31 -04:00
nbt MC Dev fixes 2016-03-30 19:36:20 -04:00
network Expose client protocol version and virtual host 2017-10-10 18:45:20 +02:00
resources MC Dev fixes 2016-03-30 19:36:20 -04:00
server Prevent logins from being processed when the player has disconnected 2017-11-12 19:40:01 +01:00
stats Allow statistics to be disabled/forced 2014-01-07 15:56:26 +00:00
util Optimize DataBits 2016-04-05 21:38:58 -04:00
world use CB BlockState implementations for captured blocks 2017-11-16 12:12:41 +00:00
ChatFormatting.java.patch Adventure 2021-01-29 17:54:03 +01:00
CrashReport.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
CrashReportCategory.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
Util.java.patch Do not submit profile lookups to worldgen threads 2021-08-08 16:26:46 -07:00