diff --git a/src/main/kotlin/dev/tehc/libreg/registry/block/Block.kt b/src/main/kotlin/dev/tehc/libreg/registry/block/Block.kt index 7269e85..9ab4c4e 100644 --- a/src/main/kotlin/dev/tehc/libreg/registry/block/Block.kt +++ b/src/main/kotlin/dev/tehc/libreg/registry/block/Block.kt @@ -38,7 +38,8 @@ fun blockItem(id: String, block: Block, itemSettings: FabricItemSettings): Pair< } fun blockItem(id: String, blockSettings: FabricBlockSettings, itemSettings: FabricItemSettings): Pair { - return blockItem(id, block(id, blockSettings), itemSettings) + val block = Block(blockSettings) + return blockItem(id, block, itemSettings) } fun blockItem(id: String, renderLayer: RenderLayer, block: Block, itemSettings: FabricItemSettings): Pair { @@ -46,5 +47,7 @@ fun blockItem(id: String, renderLayer: RenderLayer, block: Block, itemSettings: } fun blockItem(id: String, renderLayer: RenderLayer, blockSettings: FabricBlockSettings, itemSettings: FabricItemSettings): Pair { - return blockItem(id, block(id, renderLayer, blockSettings), itemSettings) + val block = Block(blockSettings) + renderLayer(block, renderLayer) + return blockItem(id, block, itemSettings) }