/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/TemplateCommand.java |
Parent Directory | Revision Log | Patch
revision 1740 by torben, Sun Mar 18 10:38:54 2012 UTC | revision 1742 by torben, Sun Mar 18 10:45:00 2012 UTC | |
---|---|---|
# | Line 124 public class TemplateCommand implements | Line 124 public class TemplateCommand implements |
124 | ||
125 | for (int i=0; i<elements.length; i++) { | for (int i=0; i<elements.length; i++) { |
126 | try { | try { |
127 | int val = Integer.parseInt( elements[i] ); | String element = elements[i].trim(); |
128 | int val = Integer.parseInt( element ); | |
129 | ||
130 | array[x][y][i] = val; | array[x][y][i] = val; |
131 | ||
# | Line 169 public class TemplateCommand implements | Line 170 public class TemplateCommand implements |
170 | int y = loc.getBlockY() + j; | int y = loc.getBlockY() + j; |
171 | int z = loc.getBlockZ() + k; | int z = loc.getBlockZ() + k; |
172 | ||
173 | world.getBlockAt(x, y, z).setTypeId( template[x][y][z] ); | world.getBlockAt(x, y, z).setTypeId( template[i][j][k] ); |
174 | } | } |
175 | } | } |
176 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |