mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-08 07:27:39 +01:00
Fixed Sentinel support
This commit is contained in:
parent
f0665dfd68
commit
c3704c708b
@ -101,7 +101,7 @@ public class ItemUse implements Listener {
|
||||
|
||||
// check for npc
|
||||
// safety checks
|
||||
if (event.getEntity().hasMetadata("NPC") || !(event.getDamager() instanceof Player) || !(event.getEntity() instanceof LivingEntity) || event.getDamage() == 0 || event.getCause() != DamageCause.ENTITY_ATTACK)
|
||||
if (event.getEntity().hasMetadata("NPC") || !(event.getDamager() instanceof Player) || event.getDamager().hasMetadata("NPC") || !(event.getEntity() instanceof LivingEntity) || event.getDamage() == 0 || event.getCause() != DamageCause.ENTITY_ATTACK)
|
||||
return;
|
||||
|
||||
// custom damage check
|
||||
|
Loading…
Reference in New Issue
Block a user