From 1272dae868a1eb022240123daab60e1c29779657 Mon Sep 17 00:00:00 2001 From: SilentChaos512 Date: Sun, 24 Nov 2024 14:04:28 -0600 Subject: [PATCH] Fixes #742, armor having incorrect toughness --- CHANGELOG.md | 3 ++- gradle.properties | 2 +- .../java/net/silentchaos512/gear/item/gear/GearArmorItem.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbc1b70c..3c7e86ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.21.1-4.0.9] - Unreleased +## [1.21.1-4.0.9] - 2024-11-24 ### Added - A few missing tags [#743, #715] ### Fixed - Renew trait not functioning correctly (VintageGnu) [#745] +- Armor items having incorrect armor toughness value [#742] - Shears having zero attack speed (not lifting onto screen when equipped) [#740] - Smithing recipes placing nothing in the output slot, but recipes still modify the input gear item for some reason... [#718] diff --git a/gradle.properties b/gradle.properties index 0e4186a0..b3ca7868 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,7 +19,7 @@ loader_version_range=[4,) mod_id=silentgear mod_name=Silent Gear mod_license=MIT -mod_version=4.0.8 +mod_version=4.0.9 release_type = beta mod_group_id=net.silentchaos512 mod_authors=SilentChaos512 diff --git a/src/main/java/net/silentchaos512/gear/item/gear/GearArmorItem.java b/src/main/java/net/silentchaos512/gear/item/gear/GearArmorItem.java index 5a158934..020f9834 100644 --- a/src/main/java/net/silentchaos512/gear/item/gear/GearArmorItem.java +++ b/src/main/java/net/silentchaos512/gear/item/gear/GearArmorItem.java @@ -73,7 +73,7 @@ public float getArmorProtection(ItemStack stack) { public float getArmorToughness(ItemStack stack) { if (GearHelper.isBroken(stack)) return 0; - return GearData.getProperties(stack).getNumber(GearProperties.ARMOR_TOUGHNESS); + return GearData.getProperties(stack).getNumber(GearProperties.ARMOR_TOUGHNESS) / 4f; } public float getArmorMagicProtection(ItemStack stack) {