1.16.4 + Modrinth
This commit is contained in:
parent
d517f1f641
commit
30e51cde58
|
@ -6,11 +6,21 @@ variables:
|
|||
before_script:
|
||||
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||
|
||||
deploy:
|
||||
build_test:
|
||||
stage: deploy
|
||||
script: gradle --build-cache assemble
|
||||
script:
|
||||
- gradle --build-cache assemble
|
||||
- cp build/libs/* ./
|
||||
- rm *-dev.jar
|
||||
- mv *.jar latest.jar
|
||||
artifacts:
|
||||
paths:
|
||||
- build/libs
|
||||
- latest.jar
|
||||
only:
|
||||
- master
|
||||
|
||||
modrinth:
|
||||
stage: deploy
|
||||
when: manual
|
||||
script: gradle --build-cache publishModrinth
|
30
build.gradle
30
build.gradle
|
@ -1,6 +1,7 @@
|
|||
plugins {
|
||||
id 'fabric-loom' version '0.5-SNAPSHOT'
|
||||
id 'maven-publish'
|
||||
id "com.modrinth.minotaur" version "1.1.0"
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
|
@ -55,23 +56,18 @@ jar {
|
|||
from "LICENSE"
|
||||
}
|
||||
|
||||
// configure the maven publication
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
// add all the jars that should be included when publishing to maven
|
||||
artifact(remapJar) {
|
||||
builtBy remapJar
|
||||
}
|
||||
artifact(sourcesJar) {
|
||||
builtBy remapSourcesJar
|
||||
}
|
||||
}
|
||||
}
|
||||
import com.modrinth.minotaur.TaskModrinthUpload
|
||||
|
||||
// select the repositories you want to publish to
|
||||
repositories {
|
||||
// uncomment to publish to the local maven
|
||||
// mavenLocal()
|
||||
task publishModrinth (type: TaskModrinthUpload){
|
||||
token = System.getenv("MODRINTH_API_TOKEN") // Use an environment property!
|
||||
projectId = 'diCZrsch'
|
||||
versionNumber = "${project.mod_version}"
|
||||
uploadFile = remapJar // This is the java jar task
|
||||
addGameVersion("${project.minecraft_version}")
|
||||
addLoader('fabric')
|
||||
versionName = "[${project.minecraft_version}] ${project.mod_version}"
|
||||
afterEvaluate {
|
||||
tasks.publishModrinth.dependsOn(remapJar)
|
||||
tasks.publishModrinth.dependsOn(sourcesJar)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
org.gradle.jvmargs=-Xmx1G
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.16.3
|
||||
yarn_mappings=1.16.3+build.27
|
||||
loader_version=0.10.0+build.208
|
||||
minecraft_version=1.16.4
|
||||
yarn_mappings=1.16.4+build.7
|
||||
loader_version=0.10.8
|
||||
# Mod Properties
|
||||
mod_version=1.1
|
||||
mod_version=1.2
|
||||
maven_group=io.gitlab.jfronny
|
||||
archives_base_name=Slyde
|
||||
|
|
|
@ -21,9 +21,7 @@ public abstract class SliderWidgetMixin {
|
|||
@Overwrite
|
||||
private void setValue(double mouseX) {
|
||||
double d = value;
|
||||
value = mouseX;
|
||||
if (!SlydeClient.isActive())
|
||||
value = MathHelper.clamp(value, 0.0D, 1.0D);
|
||||
value = SlydeClient.isActive() ? mouseX : MathHelper.clamp(mouseX, 0.0D, 1.0D);
|
||||
if (d != value) {
|
||||
applyValue();
|
||||
}
|
||||
|
|
|
@ -25,9 +25,7 @@ public abstract class SodiumSliderControlMixin extends ControlElement<Integer> {
|
|||
*/
|
||||
@Overwrite(remap = false)
|
||||
private void setValue(double d) {
|
||||
this.thumbPosition = d;
|
||||
if (!SlydeClient.isActive())
|
||||
this.thumbPosition = MathHelper.clamp(this.thumbPosition, 0.0D, 1.0D);
|
||||
this.thumbPosition = SlydeClient.isActive() ? d : MathHelper.clamp(d, 0.0D, 1.0D);
|
||||
int value = this.getIntValue();
|
||||
if (this.option.getValue() != value) {
|
||||
this.option.setValue(value);
|
||||
|
|
Loading…
Reference in New Issue