From ae0b208857fe6c52119d226135a057b4cedc0e91 Mon Sep 17 00:00:00 2001 From: TheLimeGlass Date: Sat, 9 Mar 2024 20:17:59 -0700 Subject: [PATCH] Fixes --- src/main/java/ch/njol/skript/bukkitutil/HealthUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/njol/skript/bukkitutil/HealthUtils.java b/src/main/java/ch/njol/skript/bukkitutil/HealthUtils.java index 1217747eb24..561a02567cb 100644 --- a/src/main/java/ch/njol/skript/bukkitutil/HealthUtils.java +++ b/src/main/java/ch/njol/skript/bukkitutil/HealthUtils.java @@ -132,7 +132,7 @@ public static void setDamage(EntityDamageEvent e, double damage) { public static boolean DAMAGE_SOURCE; @Nullable - private static final Constructor DAMAGE_EVENT_CONSTRUCTOR; + private static Constructor DAMAGE_EVENT_CONSTRUCTOR; static { if (!DAMAGE_SOURCE) { @@ -161,7 +161,7 @@ public static void setDamageCause(Damageable entity, DamageCause cause) { entity.setLastDamageCause(DAMAGE_EVENT_CONSTRUCTOR.newInstance(entity, cause, 0)); } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { Skript.exception(e, "Failed to set last damage cause"); - } + } } }