--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/DoorBlockListener.java 2011/07/16 11:01:02 1578 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/DoorBlockListener.java 2011/07/16 11:16:09 1579 @@ -55,6 +55,7 @@ } private Block[] getAdjacentBlocks(Block block) { +/* Block out[] = new Block[6]; out[0] = block.getRelative(-1,0,0); @@ -65,6 +66,18 @@ out[4] = block.getRelative(0,0,-1); out[5] = block.getRelative(0,0,1); +*/ + + Block out[] = new Block[27]; + int count = 0; + for (int x=-1; x<=1; x++) { + for (int y=-1; y<=1; y++) { + for (int z=-1; z<=1; z++) { + out[count++] = block.getRelative(x,y,z); + } + } + + } return out;