This commit is contained in:
aPunch 2012-02-19 23:09:01 -06:00
parent 1a25986d27
commit bdc81f1b95

View File

@ -77,7 +77,7 @@ public class EventListen implements Listener {
if (!npcManager.isNPC(event.getEntity()))
return;
event.setCancelled(true); // TODO implement damage handlers
event.setCancelled(true);
if (event instanceof EntityDamageByEntityEvent) {
EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event;
if (e.getDamager() instanceof Player) {