U1timateJ7 / CustomBlocks

A mod that allows you to add your own custom blocks without complex coding and Gradle errors.
Other
8 stars 0 forks source link

Fabric server crashes on startup when CustomBlocks is installed #12

Closed ghost closed 2 years ago

ghost commented 2 years ago

Describe the bug Fabric server crashes on startup when CustomBlocks is installed.

To Reproduce

  1. Download fabric server from official site;
  2. Put CustomBlocks and Fabric API in the mods folder;
  3. Launch server using launch command from the official fabric site.

Versions:

 [main/FATAL]: Failed to start the minecraft server
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'custom_blocks'!
    at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51) ~[fabric-loader-0.13.3.jar:?]
    at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33) ~[fabric-loader-0.13.3.jar:?]
    at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49) ~[fabric-loader-0.13.3.jar:?]
    at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35) ~[fabric-loader-0.13.3.jar:?]
    at net.fabricmc.loader.impl.game.minecraft.Hooks.startServer(Hooks.java:62) ~[fabric-loader-0.13.3.jar:?]
    at net.minecraft.server.Main.main(Main.java:106) [server-intermediary.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:416) [fabric-loader-0.13.3.jar:?]
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77) [fabric-loader-0.13.3.jar:?]
    at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.13.3.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:66) [fabric-loader-0.13.3.jar:?]
    at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:64) [fabric-server-mc.1.18.1-loader.0.13.3-launcher.0.10.2.jar:0.10.2]
Caused by: java.lang.NoClassDefFoundError: net/minecraft/class_310
    at com.ulto.customblocks.GenerateCustomElements.<clinit>(GenerateCustomElements.java:362) ~[CustomBlocks-1.5.0.1-1.18.1-pre1.jar:?]
    at com.ulto.customblocks.CustomBlocksMod.onInitialize(CustomBlocksMod.java:30) ~[CustomBlocks-1.5.0.1-1.18.1-pre1.jar:?]
    at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47) ~[fabric-loader-0.13.3.jar:?]
    ... 16 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.class_310
    at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
    at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:158) ~[fabric-loader-0.13.3.jar:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
    at com.ulto.customblocks.GenerateCustomElements.<clinit>(GenerateCustomElements.java:362) ~[CustomBlocks-1.5.0.1-1.18.1-pre1.jar:?]
    at com.ulto.customblocks.CustomBlocksMod.onInitialize(CustomBlocksMod.java:30) ~[CustomBlocks-1.5.0.1-1.18.1-pre1.jar:?]
    at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47) ~[fabric-loader-0.13.3.jar:?]
    ... 16 more