Skip to content

Commit

Permalink
Fixed: Player and World dimension id miss match prevents mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed Mar 8, 2024
1 parent 597324b commit 07f0e59
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions doc/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ <h1>JourneyMap ${version} for Minecraft ${mcversion}</h1>
<li>Fixed: Windows data path tokens if they are invalid</li>
<li>Fixed: Update checker urls</li>
<li>Fixed: Zip resource extraction.</li>
<li>Fixed: Player and World dimension id miss match prevents mapping.</li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
import java.util.EnumSet;
import java.util.Set;

// 1.7.10
// 1.8
//import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
//import net.minecraftforge.fml.relauncher.Side;
//import net.minecraftforge.fml.relauncher.SideOnly;

/**
* @author techbrew 1/29/14.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
import journeymap.client.ui.fullscreen.Fullscreen;
import journeymap.common.Journeymap;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.*;
import net.minecraft.client.gui.GuiGameOver;
import net.minecraft.client.gui.GuiMainMenu;
import net.minecraft.client.gui.GuiMultiplayer;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.GuiSelectWorld;
import org.apache.logging.log4j.Logger;

/**
Expand Down Expand Up @@ -59,6 +63,11 @@ public IMainThreadTask perform(Minecraft mc, JourneymapClient jm)
}
else if (lastDimension != mc.thePlayer.dimension)
{
if (mc.thePlayer.dimension != Minecraft.getMinecraft().theWorld.provider.dimensionId)
{
mc.thePlayer.dimension = Minecraft.getMinecraft().theWorld.provider.dimensionId;
}

lastDimension = mc.thePlayer.dimension;
if (jm.isMapping())
{
Expand Down

0 comments on commit 07f0e59

Please sign in to comment.