mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-03 04:55:28 +02:00
This commit is contained in:
@@ -159,7 +159,8 @@ public class WoodcuttingManager extends SkillManager {
|
||||
double health = player.getHealth();
|
||||
|
||||
if (health > 1) {
|
||||
CombatUtils.dealDamage(player, Misc.getRandom().nextInt((int) (health - 1)));
|
||||
int dmg = Misc.getRandom().nextInt((int) (health - 1));
|
||||
CombatUtils.safeDealDamage(player, dmg);
|
||||
}
|
||||
|
||||
return;
|
||||
|
Reference in New Issue
Block a user