We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6020da commit 839971bCopy full SHA for 839971b
src/main/kotlin/one/oktw/galaxy/block/entity/DummyBlockEntity.kt
@@ -28,7 +28,7 @@ import one.oktw.galaxy.block.CustomBlock
28
class DummyBlockEntity(type: BlockEntityType<*>, pos: BlockPos) : CustomBlockEntity(type, pos) {
29
override fun loadAdditional(view: ValueInput) {
30
super.loadAdditional(view)
31
- view.getStringOr("id", "")?.let(Identifier::tryParse)?.let(CustomBlock.registry::get)?.let {
+ view.getStringOr("id", "").let(Identifier::tryParse)?.let(CustomBlock.registry::get)?.let {
32
if (it != CustomBlock.DUMMY) {
33
level?.removeBlockEntity(worldPosition)
34
level?.setBlockEntity(it.createBlockEntity(worldPosition).apply { readCopyableData(view) })
0 commit comments