]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/common/events/WorldLoaded.java
Setup for 1.16.3 Fabric
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / common / events / WorldLoaded.java
index f96d4d7a7f5020a10e357cdf289de730dabe10ac..cb1a04a043c73dc17d57e01ae28c464b945204f4 100644 (file)
@@ -2,7 +2,7 @@ package com.irtimaled.bbor.common.events;
 
 import com.irtimaled.bbor.common.models.DimensionId;
 import net.minecraft.server.world.ServerWorld;
-import net.minecraft.world.level.LevelProperties;
+import net.minecraft.world.WorldProperties;
 
 public class WorldLoaded {
     private final DimensionId dimensionId;
@@ -11,9 +11,9 @@ public class WorldLoaded {
     private final int spawnZ;
 
     public WorldLoaded(ServerWorld world) {
-        LevelProperties info = world.getLevelProperties();
-        this.dimensionId = DimensionId.from(world.getDimension().getType());
-        this.seed = info.getSeed();
+        WorldProperties info = world.getLevelProperties();
+        this.dimensionId = DimensionId.from(world.getRegistryKey());
+        this.seed = world.getSeed();
         this.spawnX = info.getSpawnX();
         this.spawnZ = info.getSpawnZ();
     }