Hbm's Nuclear Tech Mod

Hbm's Nuclear Tech Mod

1M Downloads

Server-side crash on dynamite charge explosion

abel1502 opened this issue ยท 0 comments

commented

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