Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 21:10:10 +01:00
Fixed fatal crashes when there's a block at maxheight at spawn - this fixes BUKKIT-922.
Dieser Commit ist enthalten in:
Ursprung
ede443234e
Commit
61fb069c61
@ -330,12 +330,14 @@ public class Chunk {
|
||||
}
|
||||
|
||||
public int getTypeId(int i, int j, int k) {
|
||||
if (j >> 4 >= sections.length) return 0;
|
||||
ChunkSection chunksection = this.sections[j >> 4];
|
||||
|
||||
return chunksection != null ? chunksection.a(i, j & 15, k) : 0;
|
||||
}
|
||||
|
||||
public int getData(int i, int j, int k) {
|
||||
if (j >> 4 >= sections.length) return 0;
|
||||
ChunkSection chunksection = this.sections[j >> 4];
|
||||
|
||||
return chunksection != null ? chunksection.b(i, j & 15, k) : 0;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren