mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
tests: don't compare offset blocks
Pixlyzer is extracting them wrong
This commit is contained in:
parent
2cac603706
commit
26898b605f
@ -29,6 +29,7 @@ import de.bixilon.minosoft.data.registries.blocks.types.fluid.water.BubbleColumn
|
|||||||
import de.bixilon.minosoft.data.registries.blocks.types.pixlyzer.PixLyzerBlock
|
import de.bixilon.minosoft.data.registries.blocks.types.pixlyzer.PixLyzerBlock
|
||||||
import de.bixilon.minosoft.data.registries.blocks.types.pixlyzer.snow.PowderSnowBlock
|
import de.bixilon.minosoft.data.registries.blocks.types.pixlyzer.snow.PowderSnowBlock
|
||||||
import de.bixilon.minosoft.data.registries.blocks.types.properties.item.BlockWithItem
|
import de.bixilon.minosoft.data.registries.blocks.types.properties.item.BlockWithItem
|
||||||
|
import de.bixilon.minosoft.data.registries.blocks.types.properties.offset.OffsetBlock
|
||||||
import de.bixilon.minosoft.data.registries.blocks.types.properties.shape.collision.CollidableBlock
|
import de.bixilon.minosoft.data.registries.blocks.types.properties.shape.collision.CollidableBlock
|
||||||
import de.bixilon.minosoft.data.registries.blocks.types.properties.shape.collision.fixed.FixedCollidable
|
import de.bixilon.minosoft.data.registries.blocks.types.properties.shape.collision.fixed.FixedCollidable
|
||||||
import de.bixilon.minosoft.data.registries.blocks.types.properties.shape.outline.OutlinedBlock
|
import de.bixilon.minosoft.data.registries.blocks.types.properties.shape.outline.OutlinedBlock
|
||||||
@ -82,6 +83,7 @@ object VerifyIntegratedBlockRegistry {
|
|||||||
|
|
||||||
private fun compareOutlineShape(pixlyzer: BlockState, integrated: BlockState, errors: StringBuilder) {
|
private fun compareOutlineShape(pixlyzer: BlockState, integrated: BlockState, errors: StringBuilder) {
|
||||||
if (integrated.block is ScaffoldingBlock) return
|
if (integrated.block is ScaffoldingBlock) return
|
||||||
|
if (integrated.block is OffsetBlock) return // Don't compare, pixlyzer is probably wrong
|
||||||
|
|
||||||
val expected = if (pixlyzer.block is OutlinedBlock) pixlyzer.block.unsafeCast<OutlinedBlock>().getOutlineShape(connection, pixlyzer) else null
|
val expected = if (pixlyzer.block is OutlinedBlock) pixlyzer.block.unsafeCast<OutlinedBlock>().getOutlineShape(connection, pixlyzer) else null
|
||||||
val actual = if (integrated.block is OutlinedBlock) integrated.block.unsafeCast<OutlinedBlock>().getOutlineShape(connection, pixlyzer) else null
|
val actual = if (integrated.block is OutlinedBlock) integrated.block.unsafeCast<OutlinedBlock>().getOutlineShape(connection, pixlyzer) else null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user