Techguns

Techguns

9M Downloads

Guided missile using client class server side

LemADEC opened this issue ยท 0 comments

commented

As of 1.12.2-2.0.2.0_pre3.1, Guided missile is trying to use client side only class on a dedicated server, failing to target to anything.

[14:33:13] [Server thread/ERROR] [FML]: Encountered an exception while constructing entity 'techguns:guidedmissileprojectilehv'
java.lang.reflect.InvocationTargetException: null
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_212]
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_212]
>       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_212]
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_212]
>       at net.minecraftforge.fml.common.registry.EntityEntryBuilder$ConstructorFactory.apply(EntityEntryBuilder.java:305) [EntityEntryBuilder$ConstructorFactory.class:?]
>       at net.minecraftforge.fml.common.registry.EntityEntryBuilder$ConstructorFactory.apply(EntityEntryBuilder.java:291) [EntityEntryBuilder$ConstructorFactory.class:?]
>       at net.minecraftforge.fml.common.registry.EntityEntry.newInstance(EntityEntry.java:68) [EntityEntry.class:?]
>       at net.minecraft.entity.EntityList.func_188429_b(EntityList.java:204) [vi.class:?]
>       at net.minecraft.entity.EntityList.func_75615_a(EntityList.java:211) [vi.class:?]
>       at net.minecraft.world.chunk.storage.AnvilChunkLoader.redirect$impl$createEntityFromCompound$zmh000(AnvilChunkLoader.java:1401) [aye.class:?]
>       at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_186050_a(AnvilChunkLoader.java:528) [aye.class:?]
>       at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadEntities(AnvilChunkLoader.java:485) [aye.class:?]
>       at net.minecraftforge.common.chunkio.ChunkIOProvider.syncCallback(ChunkIOProvider.java:101) [ChunkIOProvider.class:?]
>       at net.minecraftforge.common.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:150) [ChunkIOExecutor.class:?]
>       at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:728) [MinecraftServer.class:?]
>       at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) [nz.class:?]
>       at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
>       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
>       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/model/ModelBiped
>       at techguns.entities.projectiles.GuidedMissileProjectile.createTrailFX(GuidedMissileProjectile.java:51) ~[GuidedMissileProjectile.class:?]
>       at techguns.entities.projectiles.RocketProjectile.<init>(RocketProjectile.java:40) ~[RocketProjectile.class:?]
>       at techguns.entities.projectiles.GuidedMissileProjectile.<init>(GuidedMissileProjectile.java:43) ~[GuidedMissileProjectile.class:?]
>       at techguns.entities.projectiles.GuidedMissileProjectileHV.<init>(GuidedMissileProjectileHV.java:17) ~[GuidedMissileProjectileHV.class:?]
>       ... 19 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.model.ModelBiped
>       at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101) ~[launchwrapper-1.12.jar:?]
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_212]
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_212]
>       at techguns.entities.projectiles.GuidedMissileProjectile.createTrailFX(GuidedMissileProjectile.java:51) ~[GuidedMissileProjectile.class:?]
>       at techguns.entities.projectiles.RocketProjectile.<init>(RocketProjectile.java:40) ~[RocketProjectile.class:?]
>       at techguns.entities.projectiles.GuidedMissileProjectile.<init>(GuidedMissileProjectile.java:43) ~[GuidedMissileProjectile.class:?]
>       at techguns.entities.projectiles.GuidedMissileProjectileHV.<init>(GuidedMissileProjectileHV.java:17) ~[GuidedMissileProjectileHV.class:?]
>       ... 19 more