diff --git a/src/main/java/me/xginko/pumpkinpvpreloaded/modules/AdjustDamageInfo.java b/src/main/java/me/xginko/pumpkinpvpreloaded/modules/AdjustDamageInfo.java index 9976ff9..b081957 100644 --- a/src/main/java/me/xginko/pumpkinpvpreloaded/modules/AdjustDamageInfo.java +++ b/src/main/java/me/xginko/pumpkinpvpreloaded/modules/AdjustDamageInfo.java @@ -26,11 +26,11 @@ public class AdjustDamageInfo implements PumpkinPVPModule, Listener { private final Cache pumpkinExploders; - private final Map> placeholderModifier; + private final Map> emptyDamageModifierMap; protected AdjustDamageInfo() { this.pumpkinExploders = Caffeine.newBuilder().expireAfterWrite(Duration.ofSeconds(1)).build(); - this.placeholderModifier = new EnumMap<>(ImmutableMap.of(EntityDamageEvent.DamageModifier.BASE, Functions.constant(-0.0))); + this.emptyDamageModifierMap = new EnumMap<>(ImmutableMap.of(EntityDamageEvent.DamageModifier.BASE, Functions.constant(-0.0))); } @Override @@ -69,7 +69,7 @@ private void onDamageByBlock(EntityDamageByBlockEvent event) { player, EntityDamageEvent.DamageCause.BLOCK_EXPLOSION, new EnumMap<>(ImmutableMap.of(EntityDamageEvent.DamageModifier.BASE, event.getFinalDamage())), - placeholderModifier, + emptyDamageModifierMap, true );