From 3cac4e70cc5c6b574f49f0cd5a29f5f409f6944f Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Sun, 26 May 2013 13:08:50 +0200 Subject: [PATCH] Allow bigger portals. Portals cannot be made of portal blocks anymore. --- src/de/craftinc/gates/util/FloodUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/craftinc/gates/util/FloodUtil.java b/src/de/craftinc/gates/util/FloodUtil.java index 8f9371d..84280b8 100644 --- a/src/de/craftinc/gates/util/FloodUtil.java +++ b/src/de/craftinc/gates/util/FloodUtil.java @@ -13,7 +13,7 @@ import de.craftinc.gates.Plugin; public class FloodUtil { - private final static int frameBlockSearchLimit = 40; + private final static int frameBlockSearchLimit = 100; private static final Set exp1 = new HashSet(); private static final Set exp2 = new HashSet(); @@ -73,7 +73,7 @@ public class FloodUtil return foundBlocks; } - if (startBlock.getType() == Material.AIR || startBlock.getType() == Material.PORTAL) { + if (startBlock.getType() == Material.AIR) { // ... We found a block :D ... foundBlocks.add(startBlock);