mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-03-12 13:19:23 +01:00
!Small cleanup
This commit is contained in:
parent
f2043c5159
commit
956d8bc478
@ -26,11 +26,9 @@ public abstract class HologramSupport {
|
||||
Bukkit.getPluginManager().registerEvents(new Listener() {
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void a(EntityDamageEvent event) {
|
||||
if (event.isCancelled() || event.getDamage() <= 0)
|
||||
return;
|
||||
|
||||
Entity entity = event.getEntity();
|
||||
if (!(entity instanceof LivingEntity) || event.getEntity() instanceof ArmorStand)
|
||||
if (!(entity instanceof LivingEntity) || event.getEntity() instanceof ArmorStand || event.getDamage() <= 0)
|
||||
return;
|
||||
|
||||
/*
|
||||
@ -49,11 +47,9 @@ public abstract class HologramSupport {
|
||||
Bukkit.getPluginManager().registerEvents(new Listener() {
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void a(EntityRegainHealthEvent event) {
|
||||
if (event.isCancelled() || event.getAmount() <= 0)
|
||||
return;
|
||||
|
||||
Entity entity = event.getEntity();
|
||||
if (!(entity instanceof LivingEntity))
|
||||
if (!(entity instanceof LivingEntity) || event.getAmount() <= 0)
|
||||
return;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user