Add missing instanceof check
This commit is contained in:
parent
d4f27ef768
commit
d2c9173943
@ -52,7 +52,10 @@ public class FountainManager extends MiniPlugin
|
||||
@EventHandler
|
||||
public void onDamage(EntityDamageByEntityEvent event)
|
||||
{
|
||||
tryBrawl((Player)event.getDamager(), event.getEntity());
|
||||
if (event.getDamager() instanceof Player)
|
||||
{
|
||||
tryBrawl((Player) event.getDamager(), event.getEntity());
|
||||
}
|
||||
}
|
||||
|
||||
private void tryBrawl(Player player, Entity entity)
|
||||
|
Loading…
Reference in New Issue
Block a user