Fixed onAbilityUsed bug with _player (presumably because it was added to cull and _player was set to null right before SkillTriggerEvent happened.)
This commit is contained in:
parent
5b04a3223d
commit
1d1a1d96f8
@ -68,7 +68,7 @@ public class TaskUseAbility extends TutorialTask<TutorialGettingStarted>
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onAbilityUesd(SkillTriggerEvent event)
|
public void onAbilityUesd(SkillTriggerEvent event)
|
||||||
{
|
{
|
||||||
if (!_player.equals(event.GetPlayer()))
|
if (_player == null || !_player.equals(event.GetPlayer()))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user