Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server-side crash on dynamite charge explosion #1742

Open
abel1502 opened this issue Oct 21, 2024 · 0 comments
Open

Server-side crash on dynamite charge explosion #1742

abel1502 opened this issue Oct 21, 2024 · 0 comments
Labels

Comments

@abel1502
Copy link
Contributor

Trying to detonate a dynamite charge with a detonator crashes standalone servers. The issue is, ExplosionSmallCreator imports net.minecraft.client.particle.EntityFX, which is unavailable on servers. Solved by adding @SideOnly(Side.CLIENT) to ExplosionSmallCreator#makeParticle().

Crash log:

java.lang.NoClassDefFoundError: net/minecraft/client/particle/EntityFX
	at com.hbm.blocks.bomb.BlockChargeDynamite.explode(BlockChargeDynamite.java:28)
	at com.hbm.items.tool.ItemDetonator.func_77659_a(ItemDetonator.java:77)
	at net.minecraft.item.ItemStack.func_77957_a(ItemStack.java:146)
	at net.minecraft.server.management.ItemInWorldManager.func_73085_a(ItemInWorldManager.java:316)
	at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:539)
	at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:60)
	at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:9)
	at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
	at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165)
	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659)
	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
	at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.particle.EntityFX
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 14 more
Caused by: java.lang.NullPointerException
@HbmMods HbmMods added the bug label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants