From 7b2d50e93e5c068f50de0b2f3ba5ec556520803e Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 30 Apr 2012 07:05:11 -0700 Subject: [PATCH] *Actually* fixing the Maths --- src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java | 1 - src/main/java/com/gmail/nossr50/util/Hardcore.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java b/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java index 6b83aecce..b8547239e 100644 --- a/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java @@ -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; diff --git a/src/main/java/com/gmail/nossr50/util/Hardcore.java b/src/main/java/com/gmail/nossr50/util/Hardcore.java index 47c604806..0fd1c073a 100644 --- a/src/main/java/com/gmail/nossr50/util/Hardcore.java +++ b/src/main/java/com/gmail/nossr50/util/Hardcore.java @@ -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;