|
8 | 8 | import me.drex.essentials.util.teleportation.Warp; |
9 | 9 | import net.minecraft.nbt.NbtAccounter; |
10 | 10 | import net.minecraft.nbt.NbtIo; |
11 | | -import net.minecraft.resources.ResourceLocation; |
| 11 | +import net.minecraft.resources.Identifier; |
12 | 12 | import net.minecraft.server.MinecraftServer; |
13 | 13 | import net.minecraft.world.level.storage.LevelResource; |
14 | 14 | import net.minecraft.world.phys.Vec3; |
@@ -58,7 +58,7 @@ public void importData(MinecraftServer server) { |
58 | 58 | var z = home.getDouble("z").orElseThrow(); |
59 | 59 | var yaw = home.getFloat("headYaw").orElseThrow(); |
60 | 60 | var pitch = home.getFloat("pitch").orElseThrow(); |
61 | | - homes.put(homeName, new Home(new Location(new Vec3(x, y, z), yaw, pitch, ResourceLocation.parse(world)))); |
| 61 | + homes.put(homeName, new Home(new Location(new Vec3(x, y, z), yaw, pitch, Identifier.parse(world)))); |
62 | 62 | } |
63 | 63 | //?} else { |
64 | 64 | /*var data = tag.getCompound("data"); |
@@ -114,7 +114,7 @@ public void importData(MinecraftServer server) { |
114 | 114 | var z = home.getDouble("z").orElseThrow(); |
115 | 115 | var yaw = home.getFloat("headYaw").orElseThrow(); |
116 | 116 | var pitch = home.getFloat("pitch").orElseThrow(); |
117 | | - warps.put(homeName, new Warp(new Location(new Vec3(x, y, z), yaw, pitch, ResourceLocation.parse(world)))); |
| 117 | + warps.put(homeName, new Warp(new Location(new Vec3(x, y, z), yaw, pitch, Identifier.parse(world)))); |
118 | 118 | } |
119 | 119 | //?} else { |
120 | 120 | /*var data = tag.getCompound("data"); |
|
0 commit comments