forked from Upstream/mmocore
null fix
This commit is contained in:
parent
ba41294748
commit
d822f39133
@ -1,5 +1,6 @@
|
||||
package net.Indyuce.mmocore.comp.mythicmobs.skill.handlers;
|
||||
|
||||
import io.lumine.mythic.utils.Schedulers;
|
||||
import net.Indyuce.mmocore.api.player.PlayerData;
|
||||
import net.Indyuce.mmocore.comp.mythicmobs.skill.MythicMobSkill;
|
||||
import net.Indyuce.mmocore.comp.mythicmobs.skill.PassiveMythicMobSkillHandler;
|
||||
@ -18,6 +19,9 @@ public class PlayerLoginSkillHandler extends PassiveMythicMobSkillHandler {
|
||||
|
||||
@EventHandler
|
||||
private void event(PlayerLoginEvent e){
|
||||
Schedulers.sync().runLater(() -> {
|
||||
castSkill(PlayerData.get( e.getPlayer()));
|
||||
}, 50);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user