From 287fe3e8dc8fccc5c40a0a2d2a7ba3e4d4f8a904 Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Mon, 14 Sep 2015 20:12:36 -0700 Subject: [PATCH] Automatic water cleanup for deleted claims in... Automatic water cleanup for deleted claims in creative mode worlds. Was previously lava only. --- src/me/ryanhamshire/GriefPrevention/Claim.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/ryanhamshire/GriefPrevention/Claim.java b/src/me/ryanhamshire/GriefPrevention/Claim.java index 64782c5..2e3307b 100644 --- a/src/me/ryanhamshire/GriefPrevention/Claim.java +++ b/src/me/ryanhamshire/GriefPrevention/Claim.java @@ -141,7 +141,7 @@ public class Claim Block block = lesser.getWorld().getBlockAt(x, y, z); if(exclusionClaim != null && exclusionClaim.contains(block.getLocation(), true, false)) continue; - if(block.getType() == Material.STATIONARY_LAVA || block.getType() == Material.LAVA) + if(block.getType() == Material.STATIONARY_LAVA || block.getType() == Material.WATER || block.getType() == Material.STATIONARY_WATER || block.getType() == Material.LAVA) { block.setType(Material.AIR); } @@ -174,7 +174,7 @@ public class Claim //dodge the exclusion claim Block block = lesser.getWorld().getBlockAt(x, y, z); - if(block.getType() == Material.STATIONARY_LAVA || block.getType() == Material.LAVA) + if(block.getType() == Material.STATIONARY_LAVA || block.getType() == Material.WATER || block.getType() == Material.STATIONARY_WATER || block.getType() == Material.LAVA) { return true; }