Fixed cube bug
This commit is contained in:
parent
9d138c0b05
commit
7469a6344f
2 changed files with 55 additions and 55 deletions
|
@ -18,9 +18,9 @@ public class Writer {
|
|||
|
||||
}
|
||||
public void writeCube(int x, int y, int z, World world, Material material){
|
||||
for(int i = 0; i > cubeSize; i++){
|
||||
for (int j = 0; j > cubeSize; j++){
|
||||
for(int k = 0; k > cubeSize; k++){
|
||||
for(int i = 0; i < cubeSize; i++){
|
||||
for (int j = 0; j < cubeSize; j++){
|
||||
for(int k = 0; k < cubeSize; k++){
|
||||
world.getBlockAt(x + i, y + j, z + k).setType(material);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue