Skip to content

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

@ashbillzw

Description

@ashbillzw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions