From bae5855a8dace3e198c1e0f56caf55db458400fb Mon Sep 17 00:00:00 2001 From: screret <68943070+screret@users.noreply.github.com> Date: Sat, 11 Nov 2023 17:22:54 +0200 Subject: [PATCH] oops fix --- .../java/argent_matter/gcyr/common/entity/RocketEntity.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/argent_matter/gcyr/common/entity/RocketEntity.java b/common/src/main/java/argent_matter/gcyr/common/entity/RocketEntity.java index 76f1f1a7..acd99831 100644 --- a/common/src/main/java/argent_matter/gcyr/common/entity/RocketEntity.java +++ b/common/src/main/java/argent_matter/gcyr/common/entity/RocketEntity.java @@ -45,7 +45,6 @@ import net.minecraft.core.GlobalPos; import net.minecraft.core.Registry; import net.minecraft.core.particles.ParticleTypes; -import net.minecraft.core.registries.Registries; import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.ListTag; import net.minecraft.nbt.NbtUtils; @@ -304,7 +303,7 @@ public void rotateRocket() { } public long computeRequiredFuelAmountForDestination(@Nullable Planet destination) { - Planet current = PlanetData.getPlanetFromLevelOrOrbit(this.level().dimension()).orElse(null); + Planet current = PlanetData.getPlanetFromLevelOrOrbit(this.level.dimension()).orElse(null); if (current == null || destination == null) { return (long) (this.getFuelCapacity() * 0.85); } else if (destination.parentWorld() == current.level() || current.parentWorld() == destination.level()) { @@ -774,7 +773,7 @@ protected void readAdditionalSaveData(CompoundTag compound) { if (compound.contains("lastPos")) { CompoundTag tag = compound.getCompound("lastPos"); BlockPos pos = NbtUtils.readBlockPos(tag.getCompound("pos")); - ResourceKey level = ResourceKey.create(Registries.DIMENSION, new ResourceLocation(tag.getString("level"))); + ResourceKey level = ResourceKey.create(Registry.DIMENSION_REGISTRY, new ResourceLocation(tag.getString("level"))); this.lastPos = GlobalPos.of(level, pos); } }