/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1533 by torben, Mon Jun 27 19:34:03 2011 UTC revision 1534 by torben, Mon Jun 27 19:43:33 2011 UTC
# Line 27  class Door { Line 27  class Door {
27          int height;          int height;
28                    
29    
30          public Door(Block sign, int width, int height) {          public Door(Block sign, int width, int height, DoorStorage store) throws ConflictingDoorException{
31                  leftUpper = sign.getLocation().clone();                  leftUpper = sign.getLocation().clone();
32                                    
33                  this.width = width;                  this.width = width;
# Line 57  class Door { Line 57  class Door {
57                  material = leftUpper.getBlock().getTypeId();                  material = leftUpper.getBlock().getTypeId();
58                                    
59                  loadBlocks();                  loadBlocks();
60                    
61                    
62                    for (int w=0; w<width; w++) {
63                            for (int h=0; h<height; h++) {
64                                    Door d = store.findDoor( blocks[w][h] );
65                                    if (d != null) {
66                                            throw new ConflictingDoorException();
67                                    }
68                            }
69                    }
70    
71          }          }
72    

Legend:
Removed from v.1533  
changed lines
  Added in v.1534

  ViewVC Help
Powered by ViewVC 1.1.20