Connector icon indicating copy to clipboard operation
Connector copied to clipboard

[1.21] `ModContainer#getRootPaths` returns a different path format to Fabric's original implementation.

Open zenfyrdev opened this issue 1 year ago • 0 comments

Minecraft version

1.21

Describe the bug

Same as title.

Steps to reproduce

  1. Print ModContainer#getRootPaths to console on Fabric. The output is: [/]
  2. Print ModContainer#getRootPaths to console on NeoForge. The output is: [.]
  3. Societal collapse :trollface:

Logs

No response

Additional context

This results in crashes of poorly written mods, which rely on the `toString' output to be exactly the same as Fabric's.

e.g jarPath.relativize(file).toString() results in ../me/melontini/andromeda/util/mixins/ErrorHandler.class instead of me/melontini/andromeda/util/mixins/ErrorHandler.class

zenfyrdev avatar Aug 08 '24 12:08 zenfyrdev