Ver Fonte

Update to 20w18a

Signed-off-by: shedaniel <daniel@shedaniel.me>
shedaniel há 5 anos atrás
pai
commit
1822f33798

+ 12 - 24
build.gradle

@@ -1,5 +1,3 @@
-import java.text.SimpleDateFormat
-
 plugins {
     id 'fabric-loom' version '0.2.7-SNAPSHOT'
     id 'maven-publish'
@@ -36,29 +34,28 @@ processResources {
 }
 
 dependencies {
-    compileOnly 'org.jetbrains:annotations:18.0.0'
+    compileOnly("org.jetbrains:annotations:18.0.0")
 
-    minecraft "com.mojang:minecraft:${project.minecraft_version}"
-    mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
+    minecraft("com.mojang:minecraft:${project.minecraft_version}")
+    mappings("net.fabricmc:yarn:${project.yarn_mappings}:v2")
 
-    modApi "net.fabricmc:fabric-loader:${project.loader_version}"
-    modApi ("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}") {
-        exclude module: "fabric-biomes-v1"
-    }
+    modApi("net.fabricmc:fabric-loader:${project.loader_version}")
+    modApi("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}")
 
-    modApi "me.shedaniel.cloth:basic-math:0.5.0"
-    include "me.shedaniel.cloth:basic-math:0.5.0"
+    modApi("me.shedaniel.cloth:basic-math:0.5.0")
+    include("me.shedaniel.cloth:basic-math:0.5.0")
 
-    modCompileOnly "io.github.prospector:modmenu:${modmenu_version}"
+    modCompileOnly("io.github.prospector:modmenu:${modmenu_version}")
+    modRuntime("io.github.prospector:modmenu:${modmenu_version}")
 
-//    modRuntime "com.lettuce.fudge:notenoughcrashes:$nec_version"
+//    modRuntime("com.lettuce.fudge:notenoughcrashes:$nec_version")
 }
 
 bintray {
     user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
     key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY')
     publications = ["MyPublication"]
-    override = true
+    publish = true
     pkg {
         repo = "cloth-config-2"
         name = "config-2"
@@ -76,15 +73,6 @@ bintray {
             gpg {
                 sign = true
             }
-//            mavenCentralSync {
-//                sync = true //[Default: true] Determines whether to sync the version to Maven Central.
-//                user = project.hasProperty('ossToken') ? project.property('ossToken') : System.getenv('OSS_TOKEN')
-//                OSS user token: mandatory
-//                password = project.hasProperty('ossPass') ? project.property('ossPass') : System.getenv('OSS_PASS')
-            //OSS user password: mandatory
-//                close = '1'
-            //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
-//            }
         }
     }
 }
@@ -143,7 +131,7 @@ curseforge {
                 requiredDependency 'fabric-api'
             }
             mainArtifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}.jar")) {
-                displayName = "[Fabric 20w17a] ClothConfig2-$project.version"
+                displayName = "[Fabric ${project.supported_version}] ClothConfig2-$project.version"
             }
             addArtifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}-sources.jar"))
             afterEvaluate {

+ 6 - 5
gradle.properties

@@ -1,7 +1,8 @@
-minecraft_version=20w17a
-yarn_mappings=20w17a+build.8
+supported_version=20w18a
+minecraft_version=20w18a
+yarn_mappings=20w18a+build.1
 loader_version=0.8.2+build.194
-fabric_version=0.6.2+build.327-1.16
-mod_version=4.0.4-unstable
-modmenu_version=1.11.0+build.2
+fabric_version=0.7.1+build.331-1.16
+mod_version=4.0.5-unstable
+modmenu_version=1.11.2+build.6
 nec_version=1.2.3+1.15.1

+ 0 - 1
src/main/java/me/shedaniel/clothconfig2/api/ScrollingContainer.java

@@ -36,7 +36,6 @@ import net.minecraft.client.render.VertexFormats;
 import net.minecraft.util.math.MathHelper;
 import org.jetbrains.annotations.ApiStatus;
 
-@ApiStatus.Internal
 public abstract class ScrollingContainer {
     public double scrollAmount;
     public double scrollTarget;