Match explosion flag coverage with EntityListener.

This commit is contained in:
wizjany 2024-09-12 20:55:03 -04:00
parent fb88d56646
commit 03aac83f4c

View File

@ -27,6 +27,7 @@
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.BreezeWindCharge; import org.bukkit.entity.BreezeWindCharge;
import org.bukkit.entity.Creature; import org.bukkit.entity.Creature;
import org.bukkit.entity.Creeper;
import org.bukkit.entity.EnderCrystal; import org.bukkit.entity.EnderCrystal;
import org.bukkit.entity.EnderDragon; import org.bukkit.entity.EnderDragon;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
@ -266,6 +267,10 @@ public static boolean isPluginSpawning(CreatureSpawnEvent.SpawnReason spawnReaso
case Firework firework -> Flags.FIREWORK_DAMAGE; case Firework firework -> Flags.FIREWORK_DAMAGE;
case Fireball fireball -> Flags.GHAST_FIREBALL; case Fireball fireball -> Flags.GHAST_FIREBALL;
case Wither wither -> Flags.WITHER_DAMAGE; 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; case null, default -> Flags.OTHER_EXPLOSION;
}; };
} }