mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Fixed NPE with startup relating to SmeltingCommand.
This commit is contained in:
@ -19,13 +19,6 @@ public abstract class SkillManager {
|
||||
this.skillLevel = profile.getSkillLevel(skill);
|
||||
this.activationChance = Misc.calculateActivationChance(Permissions.lucky(player, skill));
|
||||
}
|
||||
|
||||
public SkillManager(Player player, SkillType child, SkillType parent1, SkillType parent2) {
|
||||
this.player = player;
|
||||
this.profile = Users.getProfile(player);
|
||||
this.skillLevel = (profile.getSkillLevel(parent1) / 4) + (profile.getSkillLevel(parent2) / 4); //TODO: Make this cleaner somehow
|
||||
this.activationChance = Misc.calculateActivationChance(Permissions.lucky(player, child));
|
||||
}
|
||||
|
||||
public Player getPlayer() {
|
||||
return player;
|
||||
|
@ -20,7 +20,6 @@ public class SmeltingCommand extends SkillCommand {
|
||||
|
||||
public SmeltingCommand() {
|
||||
super(SkillType.SMELTING);
|
||||
this.skillValue = (profile.getSkillLevel(SkillType.MINING) / 4) + (profile.getSkillLevel(SkillType.REPAIR) / 4); //TODO: Make this cleaner somehow
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user