Add ModSide to manifest.
Adding
manifest {
attributes 'ModSide': 'CLIENT'
}
to jar in your build.gradle file will mark the mod as client side and will prevent it from loading on server and thus crashing them.
Like this?
buildscript {
...
}
...
apply plugin: 'forge'
...
version = "1.5.0"
group= "com.asaskevich.smartcursor" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "SmartCursor"
...
minecraft {
...
}
manifest {
attributes 'ModSide': 'CLIENT'
}
dependencies {
...
}
processResources {
...
}
because in the last release there are no anything inside manifest file, only its version
No, it needs to go inside of the jar block, like this:
https://github.com/dries007/TapeMouse/blob/master/build.gradle#L82
Also, you might want to include the build.gradle in the project repo. A build server would then be able to build the project every time you push a commit. You can still hide details like passwords in a separate gradle file in your user directory. (More info on the gradle website)
@Claycorp @dries007 okay, will look on it