From ffb23b3e571b0234a2a48b29ef39f7460ed4155f Mon Sep 17 00:00:00 2001 From: Kli Kli Date: Sat, 21 Dec 2024 08:49:35 +0100 Subject: [PATCH] chore: update deprecated call --- .../klikli_dev/occultism/registry/OccultismDataComponents.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/klikli_dev/occultism/registry/OccultismDataComponents.java b/src/main/java/com/klikli_dev/occultism/registry/OccultismDataComponents.java index da8b4bbe1..46bea382a 100644 --- a/src/main/java/com/klikli_dev/occultism/registry/OccultismDataComponents.java +++ b/src/main/java/com/klikli_dev/occultism/registry/OccultismDataComponents.java @@ -1,6 +1,5 @@ package com.klikli_dev.occultism.registry; -import com.klikli_dev.modonomicon.util.Codecs; import com.klikli_dev.occultism.Occultism; import com.klikli_dev.occultism.api.common.data.*; import com.klikli_dev.occultism.util.OccultismExtraCodecs; @@ -22,7 +21,7 @@ import java.util.UUID; public class OccultismDataComponents { - public static final DeferredRegister.DataComponents DATA_COMPONENTS = DeferredRegister.createDataComponents(Occultism.MODID); + public static final DeferredRegister.DataComponents DATA_COMPONENTS = DeferredRegister.createDataComponents(Registries.DATA_COMPONENT_TYPE, Occultism.MODID); public static final DeferredHolder, DataComponentType> MAX_MINING_TIME = DATA_COMPONENTS.registerComponentType("max_mining_time", builder -> builder .persistent(Codec.INT)