mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
*Actually* fixing the Maths
This commit is contained in:
parent
8bec50663f
commit
7b2d50e93e
@ -1,6 +1,5 @@
|
|||||||
package com.gmail.nossr50.listeners;
|
package com.gmail.nossr50.listeners;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
|
@ -14,7 +14,7 @@ public class Hardcore {
|
|||||||
for(SkillType st : SkillType.values()) {
|
for(SkillType st : SkillType.values()) {
|
||||||
if(st.equals(SkillType.ALL))
|
if(st.equals(SkillType.ALL))
|
||||||
continue;
|
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)
|
if(newValue < 0)
|
||||||
newValue = 0;
|
newValue = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user