forked from SteamWar/SteamWar
Add GameModeConfig.ArenaConfig.WaterDamage for hard water damage by setting air or normal handling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user