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
The current file Charge.java consists 2 decorators of "@SideOnly(Side.CLIENT)" which will cause the mod built from trunk to crash. I was testing truck build due to the sponge incompatibility of the current beta 4 release.
In construction stage of loading module "charge", it throws an exception: "java.lang.RuntimeException: Attempted to load class mods/railcraft/api/charge/Charge$IZapEffectRenderer for invalid side SERVER". This implies the behavior of the decorator "@SideOnly(Side.CLIENT)" might be resisting the entire class/enum from loading instead of strip certain methods from a loadable class on the server side.
What I described here is not matching with the behavior documented here: ForgeDoc/Concepts/Sides , but removing the 2 "sideonly" decorations will make it load and work in the sponge server. Also the forge doc do suggest to not use this decoration except certain very specific circumstances.
Version numbers for your reference:
Forge: 14.23.5.2811
SpongeForge: 1.12.2-2768-7.1.5
Buildcraft: current git
Java: openjdk version "1.8.0_171"
Thank you for investigating into this.
The text was updated successfully, but these errors were encountered:
The current file Charge.java consists 2 decorators of "@SideOnly(Side.CLIENT)" which will cause the mod built from trunk to crash. I was testing truck build due to the sponge incompatibility of the current beta 4 release.
In construction stage of loading module "charge", it throws an exception: "java.lang.RuntimeException: Attempted to load class mods/railcraft/api/charge/Charge$IZapEffectRenderer for invalid side SERVER". This implies the behavior of the decorator "@SideOnly(Side.CLIENT)" might be resisting the entire class/enum from loading instead of strip certain methods from a loadable class on the server side.
What I described here is not matching with the behavior documented here: ForgeDoc/Concepts/Sides , but removing the 2 "sideonly" decorations will make it load and work in the sponge server. Also the forge doc do suggest to not use this decoration except certain very specific circumstances.
Version numbers for your reference:
Forge: 14.23.5.2811
SpongeForge: 1.12.2-2768-7.1.5
Buildcraft: current git
Java: openjdk version "1.8.0_171"
Thank you for investigating into this.
The text was updated successfully, but these errors were encountered: