MinecraftClientData.getInstance().platformIdMap.get(platformId).routes is always empty
duduskz opened this issue ยท 2 comments
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
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
- Write a getRouteStream method, as shown above
- Enter the game test and test that the platform corresponding to platformId has a route
- Send debugging information: routes is empty.
In-game Log and Crash Report
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
Extra Information
No response
This may be because I created the station in advance, but how should I get the Data of the entire map?