Minecraft Transit Railway (Automated trains, planes, and more!)

Minecraft Transit Railway (Automated trains, planes, and more!)

1M Downloads

MinecraftClientData.getInstance().platformIdMap.get(platformId).routes is always empty

duduskz opened this issue ยท 2 comments

commented

Before reporting, I have confirmed that

  • This bug does not appear to be reported on GitHub Issues before.
  • This bug still exists in the latest version of the Minecraft Transit Railway mod.
  • I have tested this in the official version of Minecraft Transit Railway, not a modified, custom, or unofficial build.

Describe the Bug

image
This is a simple code that calls mtr core to get the Route list by platformId, but the routes of MinecraftClientData.platformIdMap is always empty

Reproduction Steps

  1. Write a getRouteStream method, as shown above
  2. Enter the game test and test that the platform corresponding to platformId has a route
  3. Send debugging information: routes is empty.
    image

In-game Log and Crash Report

image

Mod Loader

Fabric

Minecraft Version

1.20.4

Minecraft Transit Railway Version

4.0.0

Operating System

Windows 11

List of Mods or Modpack You Were Using

image

Extra Information

No response

commented

This may be because I created the station in advance, but how should I get the Data of the entire map?

commented

Query simplifedRoutes instead of routes, which should exist in the client side.