Reorganize overloads
This commit is contained in:
parent
e0143091cb
commit
1f76441b5c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user