Skip to content

Commit b17993e

Browse files
author
TehcJS
committed
fix #7
1 parent fb43a48 commit b17993e

File tree

1 file changed

+5
-2
lines changed
  • src/main/kotlin/dev/tehc/libreg/registry/block

1 file changed

+5
-2
lines changed

src/main/kotlin/dev/tehc/libreg/registry/block/Block.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,16 @@ fun blockItem(id: String, block: Block, itemSettings: FabricItemSettings): Pair<
3838
}
3939

4040
fun blockItem(id: String, blockSettings: FabricBlockSettings, itemSettings: FabricItemSettings): Pair<Block, BlockItem> {
41-
return blockItem(id, block(id, blockSettings), itemSettings)
41+
val block = Block(blockSettings)
42+
return blockItem(id, block, itemSettings)
4243
}
4344

4445
fun blockItem(id: String, renderLayer: RenderLayer, block: Block, itemSettings: FabricItemSettings): Pair<Block, BlockItem> {
4546
return Pair(block(id, renderLayer, block), item(id, BlockItem(block, itemSettings)) as BlockItem)
4647
}
4748

4849
fun blockItem(id: String, renderLayer: RenderLayer, blockSettings: FabricBlockSettings, itemSettings: FabricItemSettings): Pair<Block, BlockItem> {
49-
return blockItem(id, block(id, renderLayer, blockSettings), itemSettings)
50+
val block = Block(blockSettings)
51+
renderLayer(block, renderLayer)
52+
return blockItem(id, block, itemSettings)
5053
}

0 commit comments

Comments
 (0)