Skip to content

Commit

Permalink
Fixes #742, armor having incorrect toughness
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentChaos512 committed Nov 24, 2024
1 parent b4f7ab1 commit 1272dae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1272dae

Please sign in to comment.