create-track-map icon indicating copy to clipboard operation
create-track-map copied to clipboard

Automatic map panning when switching dimensions by clicking on a portal not working.

Open ashbillzw opened this issue 9 months ago • 0 comments

Describe the Bug

Related: #45 (reworded for clarity)

Reproduction Steps

Current Behavior: Clicking on a portal shown on map would switch dimensions between overworld and nether, but the map would not pan to the location of the corresponding portal after the dimension switch.

Expected Result

Expected Behavior: Map automatically pans to the location of the corresponding portal.

Screenshots and Videos

Image

Crash Report or Log

No response

Operating System

Ubuntu 22.04.1 LTS

CTM Version

1.4

Create Version

0.5.1e

Minecraft Version

1.20.1

Mod Loader

Forge

Modloader Version

47.2.0

Instance Type

Server hosted on vps/dedicated server

Other Mods

No response

Additional Context

Suspected Cause:

“lmgr.switchDimensions(...)” at create-track-map.js:110 halts, due to:

“this.dimensionLayers[dim].addTo(map)” at ctm.layer-manager.js:98 raising “ReferenceError: dim is not defined”;

causing “map.panTo(xz(portal.to.location))” at create-track-map.js:111 to never execute, thus map does not pan.

ashbillzw avatar Mar 24 '25 03:03 ashbillzw