Add GameModeConfig.ArenaConfig.WaterDamage for hard water damage by setting air or normal handling

This commit is contained in:
2026-03-01 21:36:29 +01:00
parent 30b7bbc283
commit bce07a4ac8
2 changed files with 9 additions and 0 deletions
@@ -182,6 +182,7 @@ public class Permanent implements Listener {
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onExplosion(EntityExplodeEvent e) {
if (!(e.getEntity() instanceof TNTPrimed)) return;
if (!Config.GameModeConfig.Arena.WaterDamage) return;
e.blockList().removeIf(block -> {
if(block.getType() == Material.TNT) {
return false;