From df2ea1f1b7716058b5105b97b8b1f01d7055b3d7 Mon Sep 17 00:00:00 2001 From: Yusuf Arfan Ismail Date: Thu, 23 Nov 2023 19:23:27 +0000 Subject: [PATCH] Fixed issue with blockreg --- .../realyusufismail/temporalsmith/TemporalSmithConfig.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/TemporalSmithConfig.kt b/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/TemporalSmithConfig.kt index 96376525..cd9fe18c 100644 --- a/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/TemporalSmithConfig.kt +++ b/neoforge/src/main/kotlin/io/github/realyusufismail/temporalsmith/TemporalSmithConfig.kt @@ -20,9 +20,7 @@ package io.github.realyusufismail.temporalsmith import io.github.realyusufismail.temporalsmith.TemporalSmith.TemporalSmith.MOD_ID import io.github.realyusufismail.temporalsmith.core.init.BlockInit -import net.minecraft.world.level.block.Blocks import net.neoforged.neoforge.common.ModConfigSpec -import net.neoforged.neoforge.registries.ForgeRegistries import org.apache.commons.lang3.tuple.Pair object TemporalSmithConfig { @@ -34,7 +32,7 @@ object TemporalSmithConfig { builder .comment("The block id of the return portal frame") .translation("$MOD_ID.config.return_portal_frame_block_id") - .define("Return Portal Frame Block ID", ForgeRegistries.BLOCKS.getKey(BlockInit.ENDERITE_BLOCK.get()).toString()) + .define("Return Portal Frame Block ID", BlockInit.ENDERITE_BLOCK.id.toString()) builder.build()