Skip to content

Commit

Permalink
Build for Minecraft 1.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
smujaddid committed Jun 25, 2020
1 parent 826e217 commit c20dfae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.2.7-SNAPSHOT'
id 'fabric-loom' version '0.4.29'
id 'maven-publish'
id "com.wynprice.cursemaven" version "2.1.4"
}
Expand All @@ -8,17 +8,17 @@ sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

archivesBaseName = project.archives_base_name
version = project.mod_version
version = "${project.mod_version}-${minecraft_version}"
group = project.maven_group

minecraft {
}

repositories {
// maven {
// name = 'TehNut temporary maven'
// url = 'https://github.com/TehNut/temporary-maven-thing/tree/master/maven'
// }
maven {
name = 'TehNut'
url = 'https://maven.tehnut.info'
}
maven { url = "https://minecraft.curseforge.com/api/maven" }
}

Expand All @@ -30,9 +30,9 @@ dependencies {

modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"

// modImplementation "mcp.mobius.waila:Hwyla:${project.hwyla_version}"
modCompile "curse.maven:hwyla:2931299"
modCompile "curse.maven:hwyla:2931303"
modImplementation "mcp.mobius.waila:Hwyla:${project.hwyla_version}"
// modCompile "curse.maven:hwyla:2987120"
// modCompile "curse.maven:hwyla:2987122"
}

processResources {
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
org.gradle.jvmargs = -Xmx1G

#Fabric properties
minecraft_version = 1.15.2
yarn_mappings = 1.15.2+build.15
loader_version = 0.8.4+build.198
minecraft_version = 1.16.1
yarn_mappings = 1.16.1+build.4
loader_version = 0.8.8+build.202

#Mod properties
mod_version = 0.1.0
mod_version = 0.2.0
maven_group = net.pancham138.horseinfo
archives_base_name = hwyla-addon-horseinfo

#Dependencies
fabric_api_version = 0.11.1+build.312-1.15
hwyla_version = 1.15.2-1.9.22-73
fabric_api_version = 0.13.1+build.370-1.16
hwyla_version = 1.16-1.9.22-74
4 changes: 2 additions & 2 deletions src/main/java/net/pancham138/horseinfo/HorseInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ else if (jumpHeight > 4.0f)

addText(tooltip, "tooltip.horseinfo.jump", FORMAT.format(jumpHeight), colorJump);

final double speed = horse.getAttributeInstance(EntityAttributes.MOVEMENT_SPEED).getBaseValue() * 42.157787584f;
final double speed = horse.getAttributeInstance(EntityAttributes.GENERIC_MOVEMENT_SPEED).getBaseValue() * 42.157787584f;

Formatting colorSpeed;
if (speed < 7.0f)
Expand All @@ -87,7 +87,7 @@ public static void addText(List<Text> tooltip, String key, String value, Formatt

public static Text getText(String key, String value, Formatting color) {
Text text = new TranslatableText(key, value);
text.getStyle().setColor(color);
text.getStyle().withColor(color);
return text;
}

Expand Down

0 comments on commit c20dfae

Please sign in to comment.