Skip to content

Commit

Permalink
Fix dimension key.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal-Spider committed Feb 5, 2025
1 parent 3c27321 commit beef367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/main/java/it/crystalnest/nightworld/Constants.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package it.crystalnest.nightworld;

import net.minecraft.core.Registry;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.Level;
Expand All @@ -21,7 +21,7 @@ public final class Constants {
/**
* Nightworld dimension {@link ResourceKey}.
*/
public static final ResourceKey<Level> NIGHTWORLD = ResourceKey.create(Registry.DIMENSION_REGISTRY, new ResourceLocation(MOD_ID, "nightworld"));
public static final ResourceKey<Level> NIGHTWORLD = ResourceKey.create(Registries.DIMENSION, new ResourceLocation(MOD_ID, "nightworld"));

/**
* Mod logger.
Expand Down

0 comments on commit beef367

Please sign in to comment.