Skip to content

Commit

Permalink
fix: bad query check
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed May 15, 2024
1 parent 5264a44 commit a5e465c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit a5e465c

Please sign in to comment.