mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Fixed /addlevels not working on offline players
Fixed /addlevels all throwing NPE because of Smelting Removed use of Users.getProfile()
This commit is contained in:
@ -144,6 +144,7 @@ public enum SkillType {
|
||||
return Users.getProfile(player).getSkillLevel(this);
|
||||
}
|
||||
|
||||
// TODO: This is a little "hacky", we probably need to add something to distinguish child skills in the enum, or to use another enum for them
|
||||
public boolean isChildSkill() {
|
||||
switch (this) {
|
||||
case SMELTING:
|
||||
|
Reference in New Issue
Block a user