From 03aac83f4c2bc58b775f29af3e8a618d5434ded2 Mon Sep 17 00:00:00 2001 From: wizjany Date: Thu, 12 Sep 2024 20:55:03 -0400 Subject: [PATCH] Match explosion flag coverage with EntityListener. --- .../main/java/com/sk89q/worldguard/bukkit/util/Entities.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/util/Entities.java b/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/util/Entities.java index c66cefe5..47ca4824 100644 --- a/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/util/Entities.java +++ b/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/util/Entities.java @@ -27,6 +27,7 @@ import org.bukkit.entity.Arrow; import org.bukkit.entity.BreezeWindCharge; import org.bukkit.entity.Creature; +import org.bukkit.entity.Creeper; import org.bukkit.entity.EnderCrystal; import org.bukkit.entity.EnderDragon; import org.bukkit.entity.Entity; @@ -266,6 +267,10 @@ public static boolean isPluginSpawning(CreatureSpawnEvent.SpawnReason spawnReaso case Firework firework -> Flags.FIREWORK_DAMAGE; case Fireball fireball -> Flags.GHAST_FIREBALL; case Wither wither -> Flags.WITHER_DAMAGE; + case Creeper creeper -> Flags.CREEPER_EXPLOSION; + case TNTPrimed tnt -> Flags.TNT; + case ExplosiveMinecart minecart -> Flags.TNT; + case EnderDragon dragon -> Flags.ENDERDRAGON_BLOCK_DAMAGE; case null, default -> Flags.OTHER_EXPLOSION; }; }