Reorganize overloads

This commit is contained in:
jordan4ibanez 2022-08-02 18:22:21 -04:00
parent e0143091cb
commit 1f76441b5c

View File

@ -98,14 +98,15 @@ public class Chunk {
return -1;
}
}
int getBlock(int index) {
return this.block[index];
}
void setBlock(int x, int y, int z, int newBlock) {
if (collide(x,y,z)) {
this.block[positionToIndex(x,y,z)] = newBlock;
}
}
// Overloads
int getBlock(int index) {
return this.block[index];
}
void setBlock(int index, int newBlock) {
this.block[index] = newBlock;
}