File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/java/com/provismet/CombatPlusCore/interfaces Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ yarn_mappings=1.20.1+build.10
9
9
loader_version =0.15.2
10
10
11
11
# Mod Properties
12
- mod_version =0.5.2
12
+ mod_version =0.5.3
13
13
maven_group =com.provismet
14
14
archives_base_name =combatplus-core
15
15
16
16
# Dependencies
17
17
fabric_version =0.91.0+1.20.1
18
18
fabric_asm_version =v2.3
19
- lilylib_version =1.1.0 -mc1.20
19
+ lilylib_version =1.1.1 -mc1.20
Original file line number Diff line number Diff line change 3
3
import com .provismet .CombatPlusCore .enchantments .OffHandEnchantment ;
4
4
import com .provismet .lilylib .util .MoreMath ;
5
5
6
- import net .minecraft .util .math .MathHelper ;
7
-
8
6
/**
9
7
* Interface for melee weapons that can be held in either hand.
10
8
*
11
9
* <p> Dual weapons are applicable for {@link OffHandEnchantment} by default.
12
10
*/
13
11
public interface DualWeapon extends MeleeWeapon {
14
- public default double getOffhandDamage () {
15
- return MathHelper .absMax (0.5 , MoreMath .roundDownToMultiple (this .getWeaponDamage () / 3.5 , 0.5 ));
12
+ public default float getOffhandDamage () {
13
+ float defaultValue = (float )MoreMath .roundDownToMultiple (this .getWeaponDamage () / 3.5f , 0.5 );
14
+ if (defaultValue > 0.5f ) return defaultValue ;
15
+ return 0.5f ;
16
16
}
17
17
}
You can’t perform that action at this time.
0 commit comments