You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! PaintersBlocks works well on single player, but seems to explode when it comes to multiplayer.
Instructions to Recreate
I'm running a test with a simplified fabric 1.18.2 setup, using the itgz/minecraft-server docker image. This image has been working pretty well for other servers so I believe it's not related to the problem and thus the problem could be replicated in any linux-based server environment.
Use minecraft 1.18.2
Use Fabric Loader 0.14.8 or 0.14.9
Use Fabric Launcher 0.10.2 or 0.11.0
Use Painter's Blocks 1.3.1 or 1.3.2
Use Fabric API 0.58.0
Below is the entire logfile (minus two lines relating to giving players op). As you can see, the server crashes instantly because net/minecraft/class_4002 is not found.
[init] Resolving type given fabric
[init] Downloading https://meta.fabricmc.net/v2/versions/loader/1.18.2/0.14.8/0.11.0/server/jar ...
[init] server.properties already created, skipping
[init] Updating ops
[init] Checking for JSON files.
[init] Setting initial memory to 6G and max to 6G
[init] Starting the Minecraft server...
Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture
[20:02:58] [main/INFO]: Loading Minecraft 1.18.2 with Fabric Loader 0.14.8
[20:02:59] [main/INFO]: Loading 42 mods:
- fabric 0.58.0+1.18.2
- fabric-api-base 0.4.4+d7c144a860 via fabric
- fabric-api-lookup-api-v1 1.6.2+2373a54560 via fabric
- fabric-biome-api-v1 8.0.6+651bcc5960 via fabric
- fabric-command-api-v1 1.1.9+d7c144a860 via fabric
- fabric-commands-v0 0.2.8+b4f4f6cd60 via fabric
- fabric-containers-v0 0.1.23+d7c144a860 via fabric
- fabric-content-registries-v0 3.1.1+c85f2e3860 via fabric
- fabric-convention-tags-v1 1.0.1+474e4f7960 via fabric
- fabric-crash-report-info-v1 0.2.1+ee261a3e60 via fabric
- fabric-data-generation-api-v1 3.0.1+9fcb91d260 via fabric
- fabric-dimensions-v1 2.1.20+489d6f8260 via fabric
- fabric-entity-events-v1 1.4.8+d7c144a860 via fabric
- fabric-events-interaction-v0 0.4.19+d7c144a860 via fabric
- fabric-events-lifecycle-v0 0.2.19+d7c144a860 via fabric
- fabric-game-rule-api-v1 1.0.13+d7c144a860 via fabric
- fabric-item-api-v1 1.5.2+17cbbd4360 via fabric
- fabric-item-groups-v0 0.3.14+91896a4960 via fabric
- fabric-lifecycle-events-v1 2.1.0+cc71601c60 via fabric
- fabric-loot-api-v2 1.1.0+1997ad1260 via fabric
- fabric-loot-tables-v1 1.1.2+e747827960 via fabric
- fabric-mining-level-api-v1 2.1.4+cc71601c60 via fabric
- fabric-networking-api-v1 1.0.23+2d30af4b60 via fabric
- fabric-networking-v0 0.3.10+b4f4f6cd60 via fabric
- fabric-object-builder-api-v1 2.1.3+032c981d60 via fabric
- fabric-particles-v1 0.2.12+526dc1ac60 via fabric
- fabric-registry-sync-v0 0.9.10+0d9ab37260 via fabric
- fabric-rendering-data-attachment-v1 0.3.7+d7c144a860 via fabric
- fabric-rendering-fluids-v1 2.0.2+54e5b2ec60 via fabric
- fabric-resource-conditions-api-v1 2.0.3+91b7aa6660 via fabric
- fabric-resource-loader-v0 0.5.2+446e059560 via fabric
- fabric-screen-handler-api-v1 1.2.2+1f6558e860 via fabric
- fabric-transfer-api-v1 1.6.3+f4563ac860 via fabric
- fabric-transitive-access-wideners-v1 1.1.0+e747827960 via fabric
- fabricloader 0.14.8
- java 17
- libblockattributes_core 0.10.2 via libmultipart_deps_container
- libmultipart 0.7.2 via libmultipart_deps_container
- libmultipart_deps_container 0.7.2 via painters_blocks
- libnetworkstack 0.6.0 via libmultipart_deps_container
- minecraft 1.18.2
- painters_blocks 1.3.2+1.18.2
[20:02:59] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/data/libraries/net/fabricmc/sponge-mixin/0.11.4+mixin.0.8.5/sponge-mixin-0.11.4+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER
[20:02:59] [main/INFO]: Compatibility level set to JAVA_16
[20:03:13] [main/ERROR]: Failed to start the minecraft server
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'painters_blocks'!
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51) ~[fabric-loader-0.14.8.jar:?]
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33) ~[fabric-loader-0.14.8.jar:?]
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49) ~[fabric-loader-0.14.8.jar:?]
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35) ~[fabric-loader-0.14.8.jar:?]
at net.fabricmc.loader.impl.game.minecraft.Hooks.startServer(Hooks.java:62) ~[fabric-loader-0.14.8.jar:?]
at net.minecraft.server.Main.main(Main.java:101) [server-intermediary.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461) [fabric-loader-0.14.8.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.14.8.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.14.8.jar:?]
at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) [fabric-loader-0.14.8.jar:?]
at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69) [fabric-server-mc.1.18.2-loader.0.14.8-launcher.0.11.0.jar:0.11.0]
Caused by: java.lang.NoClassDefFoundError: net/minecraft/class_4002
at juuxel.paintersblocks.part.PbParts.<clinit>(PbParts.java:21) ~[PaintersBlocks-1.3.2+1.18.2.jar:?]
at juuxel.paintersblocks.PaintersBlocks.onInitialize(PaintersBlocks.java:29) ~[PaintersBlocks-1.3.2+1.18.2.jar:?]
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47) ~[fabric-loader-0.14.8.jar:?]
... 8 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.class_4002
at jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source) ~[?:?]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:226) ~[fabric-loader-0.14.8.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:145) ~[fabric-loader-0.14.8.jar:?]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at juuxel.paintersblocks.part.PbParts.<clinit>(PbParts.java:21) ~[PaintersBlocks-1.3.2+1.18.2.jar:?]
at juuxel.paintersblocks.PaintersBlocks.onInitialize(PaintersBlocks.java:29) ~[PaintersBlocks-1.3.2+1.18.2.jar:?]
at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47) ~[fabric-loader-0.14.8.jar:?]
... 8 more
2022-08-19T20:03:14.083-0700 INFO mc-server-runner Done
I write code but it's been a while since I've written java, but I tried to look through the stack trace and the source. I don't understand why PbParts.java line 21 is at fault. The only import from net.minecraft.* is for net.minecraft.block.Block an import I would think is so fundamental to the game that it would probably be found.
I can play this mod just fine in single player, and even with it installed on the client while not present on the server (the UI shows up, but I can't add blocks to my inventory, which makes sense since it's missing on the server). However, when running a server with only 2 mods (fabric api and this mod), it crashes.
I tried to build this inside my IDE and received a message that the register function was deprecated, but I'm not sure this is related to the issue.
I'm going to try this on another docker image to make sure that has nothing to do with the problem I'm experiencing. I'll update this issue if I find that's the case.
The text was updated successfully, but these errors were encountered:
Hello! PaintersBlocks works well on single player, but seems to explode when it comes to multiplayer.
Instructions to Recreate
I'm running a test with a simplified fabric 1.18.2 setup, using the itgz/minecraft-server docker image. This image has been working pretty well for other servers so I believe it's not related to the problem and thus the problem could be replicated in any linux-based server environment.
Below is the entire logfile (minus two lines relating to giving players op). As you can see, the server crashes instantly because
net/minecraft/class_4002
is not found.I write code but it's been a while since I've written java, but I tried to look through the stack trace and the source. I don't understand why
PbParts.java
line21
is at fault. The only import fromnet.minecraft.*
is fornet.minecraft.block.Block
an import I would think is so fundamental to the game that it would probably be found.I can play this mod just fine in single player, and even with it installed on the client while not present on the server (the UI shows up, but I can't add blocks to my inventory, which makes sense since it's missing on the server). However, when running a server with only 2 mods (fabric api and this mod), it crashes.
I tried to build this inside my IDE and received a message that the
register
function was deprecated, but I'm not sure this is related to the issue.I'm going to try this on another docker image to make sure that has nothing to do with the problem I'm experiencing. I'll update this issue if I find that's the case.
The text was updated successfully, but these errors were encountered: