From d6d6624a043abaddaa7d51ac4ca700c69e984eac Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 26 Nov 2010 23:02:18 -0800 Subject: [PATCH] /fixwater and /fixlava no longer cross solely diagonally connected pools. --- src/EditSession.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/EditSession.java b/src/EditSession.java index 87408efd7..3261c8115 100755 --- a/src/EditSession.java +++ b/src/EditSession.java @@ -1228,15 +1228,10 @@ public class EditSession { continue; } - for (int x = cur.getBlockX() - 1; x <= cur.getBlockX() + 1; x++) { - for (int z = cur.getBlockZ() - 1; z <= cur.getBlockZ() + 1; z++) { - BlockVector newPos = new BlockVector(x, cur.getBlockY(), z); - - if (!cur.equals(newPos)) { - queue.push(newPos); - } - } - } + queue.push(cur.add(1, 0, 0).toBlockVector()); + queue.push(cur.add(-1, 0, 0).toBlockVector()); + queue.push(cur.add(0, 0, 1).toBlockVector()); + queue.push(cur.add(0, 0, -1).toBlockVector()); } return affected;