--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/07/16 11:01:02 1578 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/07/16 11:16:09 1579 @@ -94,12 +94,23 @@ } public void powerChange(World world, int oldCurrent, int newCurrent ) { - if (newCurrent != 0) { - open(world); + if (newCurrent != 0 && isPowered() == true) { + open(); } else { - close(world); + close(); } } + + public boolean isPowered() { + for (int w=0; w