ViaVersion / ViaFabric

Client-side and server-side ViaVersion implementation for Fabric
https://viaversion.com/fabric
GNU General Public License v3.0
324 stars 38 forks source link

Mod 'ViaFabric for 1.xx' requires version 1.xx of 'Minecraft' but only the wrong version is present: 1.21! #356

Closed HatTrkPatrk closed 3 months ago

HatTrkPatrk commented 3 months ago

/viaversion dump Output

https://dump.viaversion.com/i-cant-start-the-server-so-no-i-cant-run-this-command

Console Error

[04:15:26] [main/INFO]: Loading Minecraft 1.21 with Fabric Loader 0.15.11 [04:15:26] [ForkJoinPool-1-worker-1/WARN]: The mod "betterstats" contains invalid entries in its mod json:

Bug Description

Obviously I don't have every version of Minecraft installed since 1.14, I'm running a 1.21 server. But for some reason, ViaFabric seems to expect every version at the same time?

Steps to Reproduce

  1. Create a 1.21 Fabric server with ViaFabric in the mods folder
  2. Attempt to start the server

Expected Behavior

...

Additional Server Info

No response

Checklist

HatTrkPatrk commented 3 months ago

On a hunch I extracted the contents of the jar file and deleted the versions from META-INF/jars that weren't 1.21 (denoted in their own fabric.mod.json) and recreated the jar. It works now. No idea if this has any implications for the functionality of the mod though, so it's not like I'm treating this as a fix for the issue.

Kichura commented 3 months ago

Not a viafabric-related bug as it says betterstats instead.