Add missing instanceof check

This commit is contained in:
cnr 2017-06-15 17:19:19 -05:00
parent d4f27ef768
commit d2c9173943

View File

@ -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)