Fix cables blockentitytype not having proper block defined

This commit is contained in:
DBotThePony 2024-08-30 19:23:22 +07:00
parent 5a6a88e65b
commit 83baf5a8a0
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -96,7 +96,7 @@ object MBlockEntities {
val ENERGY_CABLES: Map<CablesConfig.E, BlockEntityType<SimpleEnergyCableBlockEntity>> = SupplierMap(CablesConfig.E.entries.map { conf ->
var selfFeed: Supplier<BlockEntityType<SimpleEnergyCableBlockEntity>> = Supplier { TODO() }
selfFeed = register("${conf.name.lowercase()}_energy_cable", { a, b -> SimpleEnergyCableBlockEntity(selfFeed.get(), a, b, conf) })
selfFeed = register("${conf.name.lowercase()}_energy_cable", { a, b -> SimpleEnergyCableBlockEntity(selfFeed.get(), a, b, conf) }, { MBlocks.ENERGY_CABLES[conf]!! })
conf to selfFeed
})