Removed xpGainATS, it actually never worked

This commit is contained in:
bm01 2012-06-12 05:59:26 +02:00
parent 3448733834
commit 5cff6ed67b

View File

@ -48,7 +48,6 @@ public class PlayerProfile {
private boolean abilityuse = true; private boolean abilityuse = true;
/* Timestamps */ /* Timestamps */
private int xpGainATS;
private int recentlyHurt; private int recentlyHurt;
private int respawnATS; private int respawnATS;
@ -977,11 +976,10 @@ public class PlayerProfile {
* @param newvalue The amount of XP to add * @param newvalue The amount of XP to add
*/ */
public void addXP(SkillType skillType, int newValue) { 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; return;
} }
xpGainATS = (int) (System.currentTimeMillis() / 1000); //Setup a timestamp of when xp was given
double bonusModifier = 0; double bonusModifier = 0;
if (inParty()) { if (inParty()) {