mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Damage from failed Tree Feller is now random (but never kills)
This commit is contained in:
@ -79,7 +79,7 @@ public class WoodCutting
|
||||
player.sendMessage(ChatColor.RED+"YOUR AXE SPLINTERS INTO DOZENS OF PIECES");
|
||||
|
||||
if(player.getHealth() >= 2)
|
||||
Combat.dealDamage(player, player.getHealth()-1);
|
||||
Combat.dealDamage(player, (int)(Math.random() * (player.getHealth()-1)));
|
||||
player.updateInventory(); //Not sure if needed
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user