3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00
Dieser Commit ist enthalten in:
Nathan Adams 2012-03-02 20:13:53 +00:00
Ursprung 61fb069c61
Commit 974ff6cb8a

Datei anzeigen

@ -330,14 +330,14 @@ public class Chunk {
} }
public int getTypeId(int i, int j, int k) { public int getTypeId(int i, int j, int k) {
if (j >> 4 >= sections.length) return 0; if (j >> 4 >= sections.length) return 0; // CraftBukkit - added until next release
ChunkSection chunksection = this.sections[j >> 4]; ChunkSection chunksection = this.sections[j >> 4];
return chunksection != null ? chunksection.a(i, j & 15, k) : 0; return chunksection != null ? chunksection.a(i, j & 15, k) : 0;
} }
public int getData(int i, int j, int k) { public int getData(int i, int j, int k) {
if (j >> 4 >= sections.length) return 0; if (j >> 4 >= sections.length) return 0; // CraftBukkit - added until next release
ChunkSection chunksection = this.sections[j >> 4]; ChunkSection chunksection = this.sections[j >> 4];
return chunksection != null ? chunksection.b(i, j & 15, k) : 0; return chunksection != null ? chunksection.b(i, j & 15, k) : 0;