From 83baf5a8a019b9a49fa29130d1208136ba315748 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 30 Aug 2024 19:23:22 +0700 Subject: [PATCH] Fix cables blockentitytype not having proper block defined --- .../kotlin/ru/dbotthepony/mc/otm/registry/MBlockEntities.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MBlockEntities.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MBlockEntities.kt index 02afe2d3d..38a19d2f3 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MBlockEntities.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MBlockEntities.kt @@ -96,7 +96,7 @@ object MBlockEntities { val ENERGY_CABLES: Map> = SupplierMap(CablesConfig.E.entries.map { conf -> var selfFeed: Supplier> = 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 })