mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-29 20:24:44 +02:00
Health and damage are now doubles, not ints.
This commit is contained in:
@ -103,10 +103,10 @@ public class WoodcuttingManager extends SkillManager {
|
||||
if (!Woodcutting.handleDurabilityLoss(treeFellerBlocks, player.getItemInHand())) {
|
||||
player.sendMessage(LocaleLoader.getString("Woodcutting.Skills.TreeFeller.Splinter"));
|
||||
|
||||
int health = player.getHealth();
|
||||
double health = player.getHealth();
|
||||
|
||||
if (health > 1) {
|
||||
CombatUtils.dealDamage(player, Misc.getRandom().nextInt(health - 1));
|
||||
CombatUtils.dealDamage(player, Misc.getRandom().nextInt((int) (health - 1)));
|
||||
}
|
||||
|
||||
return;
|
||||
|
Reference in New Issue
Block a user