Skip to content

Commit

Permalink
chore: update deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Dec 21, 2024
1 parent 95bdf0a commit ffb23b3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<?>, DataComponentType<Integer>> MAX_MINING_TIME = DATA_COMPONENTS.registerComponentType("max_mining_time", builder -> builder
.persistent(Codec.INT)
Expand Down

0 comments on commit ffb23b3

Please sign in to comment.