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] ); |
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 |
|
|