aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorBjarne Koll <[email protected]>2024-06-03 19:39:20 +0200
committerGitHub <[email protected]>2024-06-03 10:39:20 -0700
commitb8f2101c3699763fc04e7a312f9b70539cbb873e (patch)
treedb767b0617cee3597661fbf2594cf827a384511f /build.gradle.kts
parent54fbd0cf0cdc9c2356a108ce5b51ea93e95fa3ac (diff)
downloadPaper-b8f2101c3699763fc04e7a312f9b70539cbb873e.tar.gz
Paper-b8f2101c3699763fc04e7a312f9b70539cbb873e.zip
Only assign blockstate data if super ctor did not (#10841)
The CraftBlockStateMeta constructor CraftBlockStateMeta(Map) invokes its parent constructor, which itself invokes deserializeInternal, which is implemented on CraftBlockStateMeta to read the components and block entity tag from the passed map. Field initialization happens after the call to the super constructor, meaning the current code overwrites the parsed internal data with the EMPTY defaults. This is prevented by moving the initialization into its own code block that can null check the fields prior to defaulting their value to EMPTY.
Diffstat (limited to 'build.gradle.kts')
0 files changed, 0 insertions, 0 deletions