FoundationGames / Automobility

A Minecraft mod on the Fabric modloader which aims to add some useful vehicles.
MIT License
49 stars 25 forks source link

Server does not start #85

Open DarkLinkMT opened 2 months ago

DarkLinkMT commented 2 months ago

I have an error that does not start my server with this mod, when I try to open it I get "Caused by: java.lang.NoSuchFieldError: Class io.github.foundationgames.automobility.item.AutomobilityItems does not have member field 'java.util.Map frameModelPool'. at io.github.foundationgames.automobility.item.AutomobilityItems.(AutomobilityItems.java:72) ~[automobility-0.3+1.18.2.2.jar:?] at io.github.foundationgames.automobility.Automobility.onInitialize(Automobility.java:45) ~[automobility-0.3+1.18.2.2.jar:?] at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384) ~[fabric-loader-0.15.10.jar:?] ... 6 more" Can you help me? The log is this latest.log

nicholasgrose commented 2 months ago

1.18.2 is no longer being maintained: image

However, I managed to hunt down and fix this bug with the following source code changes and a recompile: image

It seems odd that the server should require those HashMaps to exist, though. They are only used in client code, so I'm unsure if this is the best possible fix. Either way it is functional.