mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
parent
aeccce24a9
commit
d5005a04e3
@ -115,6 +115,9 @@ public abstract class CharBlocks implements IBlocks {
|
|||||||
public char get(int x, @Range(from = 0, to = 255) int y, int z) {
|
public char get(int x, @Range(from = 0, to = 255) int y, int z) {
|
||||||
final int layer = y >> 4;
|
final int layer = y >> 4;
|
||||||
final int index = (y & 15) << 8 | z << 4 | x;
|
final int index = (y & 15) << 8 | z << 4 | x;
|
||||||
|
if (layer >= sections.length || layer < 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return sections[layer].get(this, layer, index);
|
return sections[layer].get(this, layer, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user