Skip to content

Commit

Permalink
correct worldKey
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Aug 12, 2024
1 parent 806e783 commit f5c2954
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/me/hsgamer/morefoworld/WorldUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import net.minecraft.nbt.NbtException;
import net.minecraft.nbt.ReportedNbtException;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.WorldLoader;
import net.minecraft.server.dedicated.DedicatedServer;
Expand Down Expand Up @@ -198,7 +199,7 @@ public static FeedbackWorld addWorld(WorldCreator creator) {
}

if (worldKey == null) {
worldKey = ResourceKey.create(Registries.DIMENSION, actualDimension.location()); // Paper
worldKey = ResourceKey.create(Registries.DIMENSION, ResourceLocation.fromNamespaceAndPath(creator.key().namespace(), creator.key().value()));
}

if (creator.keepSpawnLoaded() == TriState.FALSE) {
Expand Down

0 comments on commit f5c2954

Please sign in to comment.