Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 00:22:51 +01:00
Add a getBlock method in ChunkSection1_9_3_4.java
Dieser Commit ist enthalten in:
Ursprung
cc64ffff98
Commit
577c8b4eaf
@ -48,8 +48,12 @@ public class ChunkSection1_9_3_4 implements ChunkSection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getBlockId(int x, int y, int z) {
|
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)];
|
int index = blocks[index(x, y, z)];
|
||||||
return palette.get(index) >> 4;
|
return palette.get(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren