/[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 1577 by torben, Thu Jun 30 17:20:38 2011 UTC revision 1578 by torben, Sat Jul 16 11:01:02 2011 UTC
# Line 62  class Door { Line 62  class Door {
62                                    
63                  loadBlocks();                  loadBlocks();
64                                    
65                            
66                  for (int w=0; w<width; w++) {                  for (int w=0; w<width; w++) {
67                          for (int h=0; h<height; h++) {                          for (int h=0; h<height; h++) {
68                                  Door d = store.findDoor( blocks[w][h] );                                  Door d = store.findDoor( blocks[w][h] );
# Line 92  class Door { Line 92  class Door {
92                                    
93                  loadBlocks();                  loadBlocks();
94          }          }
95    
96            public void powerChange(World world, int oldCurrent, int newCurrent ) {
97                    if (newCurrent != 0) {
98                            open(world);
99                    } else {
100                            close(world);
101                    }      
102            }
103                    
104          private void loadBlocks() {          private void loadBlocks() {
105                                    

Legend:
Removed from v.1577  
changed lines
  Added in v.1578

  ViewVC Help
Powered by ViewVC 1.1.20