From 5cff6ed67bcd99ce68c7060158936c632a97a1be Mon Sep 17 00:00:00 2001 From: bm01 Date: Tue, 12 Jun 2012 05:59:26 +0200 Subject: [PATCH] Removed xpGainATS, it actually never worked --- src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java index b49221e9b..6a2e90b73 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java @@ -48,7 +48,6 @@ public class PlayerProfile { private boolean abilityuse = true; /* Timestamps */ - private int xpGainATS; private int recentlyHurt; private int respawnATS; @@ -977,11 +976,10 @@ public class PlayerProfile { * @param newvalue The amount of XP to add */ public void addXP(SkillType skillType, int newValue) { - if (System.currentTimeMillis() < ((xpGainATS * 1000) + 250) || player.getGameMode().equals(GameMode.CREATIVE)) { + if (player.getGameMode().equals(GameMode.CREATIVE)) { return; } - xpGainATS = (int) (System.currentTimeMillis() / 1000); //Setup a timestamp of when xp was given double bonusModifier = 0; if (inParty()) {