mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-24 15:01:44 +01:00
!FIXME NPE
This commit is contained in:
parent
383c283ea8
commit
8029b2e37d
@ -118,6 +118,7 @@ public class Shadow_Veil extends Ability implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void cancelMobTarget(EntityTargetEvent event) {
|
||||
// FIXME NPE for some reason, not sure if getTarget or player is null. Doubt its getTarget but you never know. https://git.lumine.io/mythiccraft/mmoitems/-/issues/126
|
||||
if (event.getTarget().equals(player))
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user