Skip to content

Commit

Permalink
Cehrry pick: a7d6f8e [a7d6f8e]
Browse files Browse the repository at this point in the history
* update deps

* fix teleposer unable to teleport to the end
  • Loading branch information
Lyfts authored and Dream-Master committed May 19, 2024
1 parent 8b0726c commit bc79720
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.DimensionManager;

import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

Expand Down Expand Up @@ -75,7 +75,8 @@ public int getDimensionID(ItemStack itemStack) {
}

public World getWorld(ItemStack itemStack) {
return DimensionManager.getWorld(getDimensionID(itemStack));
return FMLCommonHandler.instance().getMinecraftServerInstance()
.worldServerForDimension(getDimensionID(itemStack));
}

public int xCoord(ItemStack itemStack) {
Expand Down

0 comments on commit bc79720

Please sign in to comment.