Fixed cube bug

This commit is contained in:
alisolarflare 2017-04-02 07:18:10 -04:00
parent 9d138c0b05
commit 7469a6344f
2 changed files with 55 additions and 55 deletions

View file

@ -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);
}
}