FatherToast / Crust

Library mod for FatherToast's Forge mods
GNU General Public License v3.0
1 stars 0 forks source link

[1.16.5 Server CRASH] Cannot reference StringUtils etcetera... #4

Closed Kaleidio closed 2 months ago

Kaleidio commented 2 months ago

Setup

Describe the bug You need to be more careful about which methods can get called on a server. A lot of them will be straight up missing. For example, the below crash...so please go through the repo to root out any others and avoid future issues.

Reports [08Jul2024 21:45:20.504] [modloading-worker-6/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: crust, class fathertoast.crust.common.core.Crust java.lang.NoSuchMethodError: 'java.lang.String net.minecraft.util.StringUtils.func_76338_a(java.lang.String)' at fathertoast.crust.api.config.common.file.CrustTomlWriter.writeComment(CrustTomlWriter.java:127) ~[crust:1.16.5-1.1.1] at fathertoast.crust.api.config.common.file.CrustConfigSpec$FileHeader.write(CrustConfigSpec.java:537) ~[crust:1.16.5-1.1.1] at fathertoast.crust.api.config.common.file.CrustConfigSpec.write(CrustConfigSpec.java:384) ~[crust:1.16.5-1.1.1] at fathertoast.crust.api.config.common.file.CrustTomlWriter.write(CrustTomlWriter.java:56) ~[crust:1.16.5-1.1.1]

Sarinsa commented 2 months ago

well thats annoying... will have a look at it once I get a moment

Sarinsa commented 2 months ago

This specific problem has been fixed. There shouldn't be any other references to "client only" stuff now, but I could be wrong. 1.16.5 isn't the priority at the moment, so I will have to take a better look some other time