Skip to content

Commit

Permalink
Fix tables not being solid
Browse files Browse the repository at this point in the history
Fixes #340.
  • Loading branch information
Juuxel committed Mar 17, 2024
1 parent 0f88577 commit 9b7e24f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/src/main/kotlin/juuxel/adorn/block/TableBlock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import net.minecraft.util.math.Direction
import net.minecraft.util.shape.VoxelShape
import net.minecraft.util.shape.VoxelShapes

class TableBlock(variant: BlockVariant) : AbstractTableBlock(variant.createSettings()), BlockWithDescription {
class TableBlock(variant: BlockVariant) : AbstractTableBlock(createSettings(variant)), BlockWithDescription {
override val sittingStat: Identifier? = null
override val descriptionKey = "block.adorn.table.description"

Expand Down Expand Up @@ -108,5 +108,9 @@ class TableBlock(variant: BlockVariant) : AbstractTableBlock(variant.createSetti
}
)
}

private fun createSettings(variant: BlockVariant) =
variant.createSettings()
.solid()
}
}

0 comments on commit 9b7e24f

Please sign in to comment.