127 |
String element = elements[i].trim(); |
String element = elements[i].trim(); |
128 |
int val = Integer.parseInt( element ); |
int val = Integer.parseInt( element ); |
129 |
|
|
130 |
|
if (val < 0 || val>255) { |
131 |
|
plugin.getLogger().info( "Template: invalid value on line " + lines + ": " + val ); |
132 |
|
return null; |
133 |
|
} |
134 |
array[x][y][i] = val; |
array[x][y][i] = val; |
135 |
|
|
136 |
} catch (Exception e) { |
} catch (Exception e) { |
177 |
int type = template[i][j][k]; |
int type = template[i][j][k]; |
178 |
|
|
179 |
|
|
180 |
plugin.getLogger().info( String.format( "Setting typeid at %d,%d,%d to %d", x,y,z, type) ); |
//plugin.getLogger().info( String.format( "Setting typeid at %d,%d,%d to %d", x,y,z, type) ); |
181 |
|
|
182 |
world.getBlockAt(x, y, z).setTypeId( type ); |
world.getBlockAt(x, y, z).setTypeId( type ); |
183 |
} |
} |