1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-02 09:46:24 +02:00

*Actually* fixing the Maths

This commit is contained in:
nossr50 2012-04-30 07:05:11 -07:00
parent 8bec50663f
commit 7b2d50e93e
2 changed files with 1 additions and 2 deletions
src/main/java/com/gmail/nossr50

@ -1,6 +1,5 @@
package com.gmail.nossr50.listeners;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;

@ -14,7 +14,7 @@ public class Hardcore {
for(SkillType st : SkillType.values()) {
if(st.equals(SkillType.ALL))
continue;
int newValue = (int) (PP.getSkillLevel(st) - (PP.getSkillLevel(st) / (Config.getInstance().getHardcoreDeathStatPenaltyPercentage() * 0.01D)));
int newValue = (int) (PP.getSkillLevel(st) - (PP.getSkillLevel(st) * (Config.getInstance().getHardcoreDeathStatPenaltyPercentage() * 0.01D)));
if(newValue < 0)
newValue = 0;