Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Nov 12, 2023
1 parent f22027a commit df38718
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
public class AdjustDamageInfo implements PumpkinPVPModule, Listener {

private final Cache<Location, Player> pumpkinExploders;
private final Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> placeholderModifier;
private final Map<EntityDamageEvent.DamageModifier, ? extends Function<? super Double, Double>> 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
Expand Down Expand Up @@ -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
);

Expand Down

0 comments on commit df38718

Please sign in to comment.