Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLimeGlass committed Mar 10, 2024
1 parent 83eea5d commit ae0b208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ch/njol/skript/bukkitutil/HealthUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static void setDamage(EntityDamageEvent e, double damage) {
public static boolean DAMAGE_SOURCE;

@Nullable
private static final Constructor<EntityDamageEvent> DAMAGE_EVENT_CONSTRUCTOR;
private static Constructor<EntityDamageEvent> DAMAGE_EVENT_CONSTRUCTOR;

static {
if (!DAMAGE_SOURCE) {
Expand Down Expand Up @@ -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");
}
}
}

}

0 comments on commit ae0b208

Please sign in to comment.