Skip to content

fix: resolve multiplayer cache path always being UNKNOWN#211

Open
Rczlin wants to merge 1 commit into
m3t4f1v3:mc_1201from
Rczlin:mc_1201
Open

fix: resolve multiplayer cache path always being UNKNOWN#211
Rczlin wants to merge 1 commit into
m3t4f1v3:mc_1201from
Rczlin:mc_1201

Conversation

@Rczlin

@Rczlin Rczlin commented Jun 28, 2026

Copy link
Copy Markdown

getBasePath() was called during handleLogin when gameMode is not yet initialized, causing all multiplayer servers and singleplayer worlds to fall into the UNKNOWN branch.

Fix by computing the full storage base path in MixinClientPacketListener at handleLogin time (when getSingleplayerServer and getServerData are both available), caching it in ClientSessionEvents, and having VoxyClientInstance.getBasePath() read directly from the cache.

getBasePath() was called during handleLogin when gameMode is not yet
initialized, causing all multiplayer servers and singleplayer worlds
to fall into the UNKNOWN branch.

Fix by computing the full storage base path in MixinClientPacketListener
at handleLogin time (when getSingleplayerServer and getServerData are
both available), caching it in ClientSessionEvents, and having
VoxyClientInstance.getBasePath() read directly from the cache.
@m3t4f1v3

Copy link
Copy Markdown
Owner

i haven't ran into this, how did you repro it?

@Rczlin

Rczlin commented Jun 29, 2026

Copy link
Copy Markdown
Author

i haven't ran into this, how did you repro it?

I encountered this issue in 1.20.1 Fabric 0.16.14. I didn't do any other operations. Do you need me to attach the mod list?

@m3t4f1v3

Copy link
Copy Markdown
Owner

sure

@Rczlin

Rczlin commented Jun 29, 2026

Copy link
Copy Markdown
Author

sure

Environment:

  • Minecraft: 1.20.1
  • Fabric Loader: 0.16.14
  • Fabric API: 0.92.6+1.20.1
  • Launcher: PCL (Plain Craft Launcher)
  • OS: Windows 11
  1. advanced-xray-fabric — X-ray vision mod
  2. appleskin — Shows hunger/saturation info
  3. architectury — Multi-loader API (dependency for leawind_third_person)
  4. balm — Utility library (dependency for various mods)
  5. BBOutlineReloaded — Shows structure bounding boxes
  6. Carpet-AMS-Addition — Carpet extension (AMS)
  7. CarpetTCTCAddition — Carpet extension (TCTC)
  8. carpet-extra — Carpet extension (Extra)
  9. carpet-org-addition — Carpet extension (Org)
  10. carpet-shadow — Carpet extension (Shadow)
  11. carpet-tis-addition — Carpet extension (TIS)
  12. chatpatches — Chat UI improvements
  13. chat_heads — Shows player heads in chat
  14. chesttracker — Chest inventory tracker
  15. clientcommands — Additional client-side commands
  16. clienthelper — Client helper utilities
  17. cloth-config — Config screen library
  18. continuity — Connected textures
  19. Controlling — Keybind search UI
  20. copper-bulb-early — Backports copper bulb
  21. crafter-early — Backports crafter
  22. CrystalCarpetAddition — Carpet extension (CCA)
  23. decoratedpotearly — Backports decorated pot
  24. double_hotbar — Dual hotbar display
  25. durabilitytooltip — Shows durability on tooltip
  26. earlycompat — Carpet early-compat fixes
  27. ExtremeSoundMuffler — Sound muffler
  28. fabric-api — Fabric API
  29. fabric-carpet — Carpet mod
  30. fabric-language-kotlin — Kotlin language support
  31. fast-chest — Optimized chest rendering
  32. FpsReducer — Reduces FPS when idle
  33. freecam — Free camera movement
  34. gugle-carpet-addition — Carpet extension (GCA, fake player save fix)
  35. IMBlocker — Fixes IME conflict on key presses
  36. indium — Sodium rendering addon (for Iris)
  37. intricarpet — Carpet extension (Intri)
  38. InventoryProfilesNext — Inventory sorting
  39. iris — Shader support
  40. isometric-renders — Isometric view renders
  41. Jade — Block/entity info overlay
  42. jecharacters — Pinyin search for inventory
  43. jei — Item/recipe viewer
  44. leawind_third_person — Enhanced third-person camera
  45. libIPN — Inventory Profiles Next library
  46. litematica — Schematic/printer mod
  47. litematica-printer-versionpack — Litematica printer version compat
  48. litematica-server-paster — Paste schematics from server
  49. LPCTools — Carpet-like tools
  50. MagicLib — MASAlib magic library
  51. malilib — MASA modding library
  52. MasaGadget — MASA utilities collection
  53. minihud — Mini HUD overlay
  54. modmenu — Mod configuration menu
  55. MyTotemDoll — Totem doll item
  56. nbtedit — In-game NBT editor
  57. nbttooltip — NBT data tooltip
  58. NoChatReports — Disables chat reporting
  59. notenoughcrashes — Better crash reports
  60. oh-my-minecraft-client — MASA utility collection
  61. owo-lib — Utility library (dependency)
  62. peek — Peek into containers
  63. Player-Extend-Carpet-Addition — Carpet extension (PECA)
  64. PluslsCarpetAddition — Carpet extension (PCA)
  65. PresenceFootsteps — Footstep sound enhancement
  66. quickshulker — Quick shulker box operations
  67. reeses_sodium_options — Enhanced Sodium settings UI
  68. replaymod — Video recording/replay
  69. screenshot-to-clipboard — Copies screenshots to clipboard
  70. Searchables — Keybind search library
  71. skinlayers3d — 3D skin layers
  72. smoothscroll — Smooth scrolling
  73. smoothswapping — Smooth inventory swapping
  74. sodium — Performance optimization
  75. sodium-extra — Sodium extra options
  76. subtick — Sub-tick timing tools
  77. supermartijn642configlib — Config library (dependency)
  78. syncmatica — Litematica schematic sync
  79. TweakMyClient — Client tweak collection
  80. tweakermore — TweakerMore (MASA tweaks)
  81. tweakeroo — TweakerOO (MASA tweaks)
  82. itemscroller — Item scrolling (MASA)
  83. itemscroller-craftaddon — Item scroller crafting addon
  84. WorldEditCUI — WorldEdit visual selection
  85. worldedit — WorldEdit mod
  86. Wurst — Hacked client
  87. XaeroPlus — Xaero's map enhancement
  88. XaerosWorldMap — World map
  89. Xaeros_Minimap — Minimap
  90. yet_another_config_lib_v3 — Config library (MyTotemDoll dependency)

@m3t4f1v3

Copy link
Copy Markdown
Owner

nothing jumps out at me, maybe try a minimal instance

@Rczlin

Rczlin commented Jul 1, 2026

Copy link
Copy Markdown
Author

nothing jumps out at me, maybe try a minimal instance

I tested it — without any mods, only with Voxy, there are also issues connecting to the server, and it also shows "unknown." I think it might be because the server has latency, but the read operation is relatively fast, so when it reads, the connection hasn't been established yet, which results in "unknown.

@themaster402

Copy link
Copy Markdown

Original issue happens for me too on 1.20.1 with Sinytra Connector and the ATM9 modlist, and is fixed in-game by disabling then reenabling Voxy. Doesn't seem to happen on the 1.21.1 branch.

@Rczlin

Rczlin commented Jul 3, 2026

Copy link
Copy Markdown
Author

我最初的问题在1.20.1版本用Sinytra Connector和ATM9模组列表时也出现过,游戏内禁用再启用Voxy后才解决。在1.21.1分支上似乎没有这种情况。

Can you try my version? Help me check if mine has been fixed. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants