huanghongxun / WaterPower

A Minecraft Mod which adds watermills, trousers, rotors, machines.
http://minecraft.curseforge.com/mc-mods/224579-water-power
20 stars 6 forks source link

client code on server side #35

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

looks like there is client code on server side (tested with forge-1.10.2-12.18.2.2099-universal.jar):

[20:14:12] [Server thread/ERROR] [FML/]: The following problems were captured during this phase [20:14:12] [Server thread/ERROR] [FML/]: Caught exception from waterpower java.lang.NoClassDefFoundError: waterpower/common/block/ore/BlockMaterial at java.lang.Class.forName0(Native Method) ~[?:1.8.0_101] at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_101] at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:503) ~[forge-1.10.2-12.18.2.2099-universal.jar:?] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[minecraft_server.1.10.2.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[minecraft_server.1.10.2.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[minecraft_server.1.10.2.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[minecraft_server.1.10.2.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[minecraft_server.1.10.2.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239) ~[forge-1.10.2-12.18.2.2099-universal.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) ~[forge-1.10.2-12.18.2.2099-universal.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[minecraft_server.1.10.2.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[minecraft_server.1.10.2.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[minecraft_server.1.10.2.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[minecraft_server.1.10.2.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[minecraft_server.1.10.2.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:545) [Loader.class:?] at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:97) [FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:328) [FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:121) [ld.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101] Caused by: java.lang.ClassNotFoundException: waterpower.common.block.ore.BlockMaterial at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101] ... 29 more Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/color/IBlockColor at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_101] at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_101] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_101] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101] ... 29 more Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.color.IBlockColor at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101] at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_101] at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_101] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_101] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101] ... 29 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101] at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_101] at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_101] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_101] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101] ... 29 more