Ver Fonte

Latest fixes

tjeske há 4 anos atrás
pai
commit
f170c28dae

+ 7 - 7
build.gradle

@@ -1,5 +1,5 @@
 plugins {
-	id 'fabric-loom' version '0.4-SNAPSHOT'
+	id 'fabric-loom' version '0.5-SNAPSHOT'
 	id 'maven-publish'
 }
 
@@ -26,16 +26,16 @@ dependencies {
 	// Fabric API. This is technically optional, but you probably want it anyway.
 	modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
 	modImplementation "io.github.prospector:modmenu:1.14.6+build.31"
-	modImplementation "io.github.cottonmc:LibGui:3.0.0-beta.1+1.16.2-rc2"
-	modApi("me.shedaniel.cloth:config-2:4.8.1") {
+	modImplementation "io.github.cottonmc:LibGui:3.0.0+1.16.3"
+	modApi("me.shedaniel.cloth:config-2:4.8.2") {
         exclude(group: "net.fabricmc.fabric-api")
     }
-	modApi("me.sargunvohra.mcmods:autoconfig1u:3.2.0-unstable") {
+	modApi("me.sargunvohra.mcmods:autoconfig1u:3.2.2") {
         exclude(group: "net.fabricmc.fabric-api")
     }
-	include "me.shedaniel.cloth:config-2:4.8.1"
-	include "me.sargunvohra.mcmods:autoconfig1u:3.2.0-unstable"
-	include "io.github.cottonmc:LibGui:3.0.0-beta.1+1.16.2-rc2"
+	include "me.shedaniel.cloth:config-2:4.8.2"
+	include "me.sargunvohra.mcmods:autoconfig1u:3.2.2"
+	include "io.github.cottonmc:LibGui:3.0.0+1.16.3"
 	// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
 	// You may need to force-disable transitiveness on them.
 }

+ 5 - 5
gradle.properties

@@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G
 
 # Fabric Properties
 	# check these on https://fabricmc.net/use
-	minecraft_version=1.16.2
-	yarn_mappings=1.16.2+build.31
-	loader_version=0.9.2+build.206
+	minecraft_version=1.16.3
+	yarn_mappings=1.16.3+build.30
+	loader_version=0.10.1+build.209
 
 # Mod Properties
-	mod_version = 4.1.1
+	mod_version = 4.1.4
 	maven_group = monkey.lumpy
 	archives_base_name = horse-stats-vanilla
 
 # Dependencies
 	# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
-	fabric_version=0.19.0+build.398-1.16
+	fabric_version=0.23.0+build.410-1.16

+ 1 - 1
src/main/java/monkey/lumpy/horse/stats/vanilla/mixin/AbstractDonkeyEntityMixin.java

@@ -46,7 +46,7 @@ public class AbstractDonkeyEntityMixin extends HorseBaseEntity {
             DecimalFormat df = new DecimalFormat("#.#");
             String jumpstrength = df.format( Converter.jumpStrengthToJumpHeight(this.getJumpStrength()) );
             String maxHealth = df.format(this.getMaxHealth());
-            String speed = df.format( 0.42466 * (this.getAttributes().getValue(EntityAttributes.GENERIC_MOVEMENT_SPEED) * 100) + 0.112665);            
+            String speed = df.format(Converter.genericSpeedToBlocPerSec(this.getAttributes().getValue(EntityAttributes.GENERIC_MOVEMENT_SPEED)));            
             
             double jumpValue = new BigDecimal(jumpstrength.replace(',', '.')).doubleValue();
             double speedValue = new BigDecimal(speed.replace(',', '.')).doubleValue();

+ 1 - 3
src/main/java/monkey/lumpy/horse/stats/vanilla/mixin/HorseEntityMixin.java

@@ -42,15 +42,13 @@ public abstract class HorseEntityMixin extends HorseBaseEntity {
         if (this.world.isClient && !this.isTame() && player.shouldCancelInteraction() && (config == null || config.isTooltipEnabled())) {
             // Show tooltip
             DecimalFormat df = new DecimalFormat("#.#");
-            String jumpstrength = df.format( 0.695 * (this.getJumpStrength() * 10) - 1.736);
+            String jumpstrength = df.format( Converter.jumpStrengthToJumpHeight(this.getJumpStrength()) );
             String maxHealth = df.format(this.getMaxHealth());
             String speed = df.format(Converter.genericSpeedToBlocPerSec(this.getAttributes().getValue(EntityAttributes.GENERIC_MOVEMENT_SPEED)));         
             
             double jumpValue = new BigDecimal(jumpstrength.replace(',', '.')).doubleValue();
             double speedValue = new BigDecimal(speed.replace(',', '.')).doubleValue();
             int healthValue = new BigDecimal(maxHealth.replace(',', '.')).intValue();
-            // while (player.isSneaking()) showTooltip
-
 
             MinecraftClient.getInstance().openScreen(
                 new ToolTipGui(new Tooltip(speedValue, jumpValue, healthValue, null))

+ 1 - 1
src/main/java/monkey/lumpy/horse/stats/vanilla/mixin/HorseScreenMixin.java

@@ -90,7 +90,7 @@ public abstract class HorseScreenMixin extends HandledScreen<HorseScreenHandler>
         } else {
             this.textRenderer.draw(matrices, "➟ " + speed, 80.0F, 6.0F, speedColor);
             this.textRenderer.draw(matrices, "⇮ " + jumpstrength, 115.0F, 6.0F, jumpColor);
-            this.textRenderer.draw(matrices, "♥ " + maxHealth, 140.0F, 6.0F, hearthColor);
+            this.textRenderer.draw(matrices, "♥ " + maxHealth, 140.0F, 6.0F, hearthColor);
         }
 
         int strengthColor = normalColor;