--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/07/17 19:28:22 1580 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/07/24 17:23:48 1581 @@ -18,8 +18,8 @@ private Location blocks[][]; // [width][height] - [0][0] == leftUpper - - private int material; + private int material[][]; + private byte data[][]; private int direction; @@ -37,7 +37,6 @@ this.owner = owner; - blocks = new Location[width][height]; direction = sign.getData() - 2; @@ -58,7 +57,7 @@ - material = leftUpper.getBlock().getTypeId(); + //material = leftUpper.getBlock().getTypeId(); loadBlocks(); @@ -81,14 +80,12 @@ leftUpper = new Location(w, Integer.parseInt(parts[1]), Integer.parseInt(parts[2]), Integer.parseInt(parts[3]) ); direction = Integer.parseInt( parts[4] ); - material = Integer.parseInt( parts[5] ); + //material = Integer.parseInt( parts[5] ); width = Integer.parseInt( parts[6] ); height = Integer.parseInt( parts[7] ); owner = parts[8]; - - blocks = new Location[width][height]; loadBlocks(); } @@ -115,6 +112,9 @@ } private void loadBlocks() { + blocks = new Location[width][height]; + material = new int[width][height]; + data = new byte[width][height]; for (int w=0; w