--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/06/27 18:10:05 1532 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/06/29 14:57:08 1535 @@ -17,19 +17,23 @@ Location leftUpper; - Location blocks[][] = new Location[2][2]; // [width][height] - [0][0] == leftUpper + Location blocks[][]; // [width][height] - [0][0] == leftUpper int material; int direction; - int width = 2; - int height = 2; + int width; + int height; - public Door(Block sign) { + public Door(Block sign, int width, int height, DoorStorage store) throws ConflictingDoorException{ leftUpper = sign.getLocation().clone(); + this.width = width; + this.height = height; + + blocks = new Location[width][height]; direction = sign.getData() - 2; @@ -53,6 +57,16 @@ material = leftUpper.getBlock().getTypeId(); loadBlocks(); + + + for (int w=0; w