Allow bigger portals. Portals cannot be made of portal blocks anymore.

This commit is contained in:
Tobias Ottenweller 2013-05-26 13:08:50 +02:00
parent 95446f1371
commit 3cac4e70cc

View File

@ -13,7 +13,7 @@ import de.craftinc.gates.Plugin;
public class FloodUtil public class FloodUtil
{ {
private final static int frameBlockSearchLimit = 40; private final static int frameBlockSearchLimit = 100;
private static final Set<BlockFace> exp1 = new HashSet<BlockFace>(); private static final Set<BlockFace> exp1 = new HashSet<BlockFace>();
private static final Set<BlockFace> exp2 = new HashSet<BlockFace>(); private static final Set<BlockFace> exp2 = new HashSet<BlockFace>();
@ -73,7 +73,7 @@ public class FloodUtil
return foundBlocks; return foundBlocks;
} }
if (startBlock.getType() == Material.AIR || startBlock.getType() == Material.PORTAL) { if (startBlock.getType() == Material.AIR) {
// ... We found a block :D ... // ... We found a block :D ...
foundBlocks.add(startBlock); foundBlocks.add(startBlock);