Fixed a major problem where the hashmap wasn't initialized on

PlayerProfile creation. However there is still a big bug with abilities
instantly wearing off and refreshing.
This commit is contained in:
nossr50
2012-02-09 15:28:05 -08:00
parent 4fdbce24d7
commit 3a812612de
8 changed files with 20 additions and 19 deletions

View File

@ -66,7 +66,7 @@ public class Herbalism
if(y != null && y != player && m.getDistance(player.getLocation(), y.getLocation()) < 10)
y.sendMessage(mcLocale.getString("Skills.GreenTerraPlayer", new Object[] {player.getName()}));
}
PP.setSkillATS(AbilityType.GREEN_TERRA, ticks);
PP.setSkillDATS(AbilityType.GREEN_TERRA, System.currentTimeMillis()+(ticks*1000));
PP.setGreenTerraMode(true);
}