From b13684433861c48475dc487cd670c7c65a3b7541 Mon Sep 17 00:00:00 2001 From: MetallicGoat Date: Sat, 6 Jan 2024 13:23:12 -0500 Subject: [PATCH] Bump to 3.3.2 --- pom.xml | 2 +- .../tweaks/explosives/ExplosiveFallDamageMultiplier.java | 5 ++++- src/main/resources/plugin.yml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 918dfcf..e867d02 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.metallicgoat MBedwarsTweaks - 3.3.2-Beta1 + 3.3.2 diff --git a/src/main/java/me/metallicgoat/tweaksaddon/tweaks/explosives/ExplosiveFallDamageMultiplier.java b/src/main/java/me/metallicgoat/tweaksaddon/tweaks/explosives/ExplosiveFallDamageMultiplier.java index 529a91e..fad51a3 100644 --- a/src/main/java/me/metallicgoat/tweaksaddon/tweaks/explosives/ExplosiveFallDamageMultiplier.java +++ b/src/main/java/me/metallicgoat/tweaksaddon/tweaks/explosives/ExplosiveFallDamageMultiplier.java @@ -32,7 +32,10 @@ public void onDamage(EntityDamageEvent event) { if (!this.explodedPlayers.containsKey(player)) return; - final boolean isFireball = this.explodedPlayers.get(player).isFireball; + final ExplodeInfo info = this.explodedPlayers.remove(player); + final boolean isFireball = info.isFireball; + + info.removeTask.cancel(); if (isFireball) event.setDamage(event.getDamage() * MainConfig.fireball_fall_damage_multiplier); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index affacf6..bae774e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: MBedwarsTweaks -version: 3.3.2-Beta1 +version: 3.3.2 author: MetallicGoat main: me.metallicgoat.tweaksaddon.MBedwarsTweaksPlugin description: Adds some extra customizability to MBedwars