brush settings

This commit is contained in:
Jesse Boyd
2019-07-20 01:29:49 +10:00
parent 5242efb4cf
commit 85ebee7da7
14 changed files with 308 additions and 80 deletions

View File

@ -57,13 +57,13 @@ public class CharBlocks implements IBlocks {
public char get(final int x, final int y, final int z) {
final int layer = y >> 4;
final int index = ((y & 15) << 8) | (z << 4) | (x & 15);
final int index = ((y & 15) << 8) | (z << 4) | (x);
return sections[layer].get(this, layer, index);
}
public void set(final int x, final int y, final int z, final char value) {
final int layer = y >> 4;
final int index = ((y & 15) << 8) | (z << 4) | (x & 15);
final int index = ((y & 15) << 8) | (z << 4) | (x);
set(layer, index, value);
}