瀏覽代碼

port to 1.16.2

TheIllusiveC4 4 年之前
父節點
當前提交
3b068c96f6

+ 7 - 7
build.gradle

@@ -13,9 +13,9 @@ buildscript {
 apply plugin: 'net.minecraftforge.gradle'
 apply plugin: 'com.matthewprenger.cursegradle'
 
-version = "${version_minecraft}-${mod_version}"
+version = "${mod_version}"
 group = "${mod_group}"
-archivesBaseName = "${mod_id}"
+archivesBaseName = "${mod_id}-forge"
 
 sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
 
@@ -30,7 +30,7 @@ minecraft {
             property 'forge.logging.console.level', 'debug'
 
             mods {
-                cakechomps {
+                customfov {
                     source sourceSets.main
                 }
             }
@@ -43,7 +43,7 @@ minecraft {
             property 'forge.logging.console.level', 'debug'
 
             mods {
-                cakechomps {
+                customfov {
                     source sourceSets.main
                 }
             }
@@ -67,16 +67,16 @@ jar {
     manifest {
         attributes(["Specification-Title": "${mod_name}",
                     "Specification-Vendor": "${mod_author}",
-                    "Specification-Version": "${version}",
+                    "Specification-Version": "${getArchiveVersion()}",
                     "Implementation-Title": "${mod_name}",
-                    "Implementation-Version": "${version}",
+                    "Implementation-Version": "${getArchiveVersion()}",
                     "Implementation-Vendor" :"${mod_author}",
                     "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
     }
 }
 
 task sourcesJar(type: Jar) {
-    classifier = 'sources'
+    archiveClassifier.set('sources')
     from sourceSets.main.allJava
 }
 

+ 4 - 0
docs/CHANGELOG.md

@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project does not adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
 This project uses MCVERSION-MAJORMOD.MAJORAPI.MINOR.PATCH.
 
+## [1.16.2-5.0.0.0] - 2020.08.14
+### Changed
+- Updated to Minecraft 1.16.2
+
 ## [4.0](https://github.com/TheIllusiveC4/CustomFoV/compare/1.15.x...master) - 2020.07.03
 ### Changed
 - Ported to 1.16.1 Forge

+ 4 - 4
gradle.properties

@@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx3G
 org.gradle.daemon=false
 
 # Mod
-mod_version=4.0
+mod_version=1.16.2-5.0.0.0
 mod_group=top.theillusivec4.customfov
 mod_id=customfov
 mod_name=Custom FoV
@@ -13,9 +13,9 @@ mod_description=Allows customization of various field of view settings.
 mod_icon=customfov_icon.png
 
 # Dependencies
-version_minecraft=FORGE-1.16.1
-version_forge=1.16.1-32.0.34
-version_mcp=20200514-1.16
+version_mc=1.16.2
+version_forge=1.16.2-33.0.2
+version_mcp=20200723-1.16.1
 
 # Curse
 curse_id=303938

+ 1 - 1
src/main/java/top/theillusivec4/customfov/CustomFoVEventHandler.java

@@ -93,7 +93,7 @@ public class CustomFoVEventHandler {
           1.0F + getConfiguredValue(0.1F, CustomFoVConfig.flyingModifier, CustomFoVConfig.flyingMax,
               CustomFoVConfig.flyingMin);
     }
-    ModifiableAttributeInstance attribute = player.getAttribute(Attributes.field_233821_d_);
+    ModifiableAttributeInstance attribute = player.getAttribute(Attributes.MOVEMENT_SPEED);
 
     if (attribute != null) {
       float speedModifier = (float) (

+ 4 - 3
src/main/resources/META-INF/mods.toml

@@ -1,5 +1,6 @@
 modLoader="javafml"
-loaderVersion="[32,)"
+loaderVersion="[33,)"
+license="LGPL-3.0-or-later"
 issueTrackerURL="https://github.com/TheIllusiveC4/CustomFoV/issues"
 logoFile="${mod_icon}"
 [[mods]]
@@ -14,12 +15,12 @@ ${mod_description}
 [[dependencies.customfov]]
     modId="forge"
     mandatory=true
-    versionRange="[32,)"
+    versionRange="[33.0.2,)"
     ordering="NONE"
     side="CLIENT"
 [[dependencies.customfov]]
     modId="minecraft"
     mandatory=true
-    versionRange="[1.16.1,1.17)"
+    versionRange="[1.16.2,1.17)"
     ordering="NONE"
     side="CLIENT"

+ 1 - 1
src/main/resources/pack.mcmeta

@@ -1,6 +1,6 @@
 {
     "pack": {
         "description": "Custom FoV resources",
-        "pack_format": 4
+        "pack_format": 6
     }
 }