From a5e465c7f89b5333619e2f39a500a65fd464f9dc Mon Sep 17 00:00:00 2001 From: Boy Date: Wed, 15 May 2024 11:04:26 +0200 Subject: [PATCH] fix: bad query check --- src/main/kotlin/com/mineinabyss/blocky/systems/BlockyPrefabs.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/mineinabyss/blocky/systems/BlockyPrefabs.kt b/src/main/kotlin/com/mineinabyss/blocky/systems/BlockyPrefabs.kt index eceaa9fa..71b75e83 100644 --- a/src/main/kotlin/com/mineinabyss/blocky/systems/BlockyPrefabs.kt +++ b/src/main/kotlin/com/mineinabyss/blocky/systems/BlockyPrefabs.kt @@ -29,7 +29,7 @@ sealed interface BlockyPrefabs { companion object { fun from(prefabKey: PrefabKey, block: SetBlock, directional: BlockyDirectional?): Block? { if (block.blockType in setOf(SetBlock.BlockType.WIRE, SetBlock.BlockType.CAVEVINE)) return null - if (directional?.isParentBlock != false) return null + if (directional != null && !directional.isParentBlock) return null return Block(prefabKey, block, directional) } }