mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-02 12:51:22 +01:00
Add a getBlock method in ChunkSection1_9_3_4.java
This commit is contained in:
parent
cc64ffff98
commit
577c8b4eaf
@ -48,8 +48,12 @@ public class ChunkSection1_9_3_4 implements ChunkSection {
|
||||
}
|
||||
|
||||
public int getBlockId(int x, int y, int z) {
|
||||
return getBlock(x, y, z) >> 4;
|
||||
}
|
||||
|
||||
public int getBlock(int x, int y, int z) {
|
||||
int index = blocks[index(x, y, z)];
|
||||
return palette.get(index) >> 4;
|
||||
return palette.get(index);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user