Commits
Yannick Lamprecht authored and md_5 committed ce373be660c
115 115 | |
116 116 | int off = ((y & 0xF) << 7) | (z << 3) | (x >> 1); |
117 117 | return (emitlight[getSectionIndex(y)][off] >> ((x & 1) << 2)) & 0xF; |
118 118 | } |
119 119 | |
120 120 | |
121 121 | public final int getHighestBlockYAt(int x, int z) { |
122 122 | Preconditions.checkState(hmap != null, "ChunkSnapshot created without height map. Please call getSnapshot with includeMaxblocky=true"); |
123 123 | validateChunkCoordinates(x, 0, z); |
124 124 | |
125 - | return hmap.getFirstAvailable(x, z); |
125 + | return hmap.getHighestTaken(x, z); |
126 126 | } |
127 127 | |
128 128 | |
129 129 | public final Biome getBiome(int x, int z) { |
130 130 | return getBiome(x, 0, z); |
131 131 | } |
132 132 | |
133 133 | |
134 134 | public final Biome getBiome(int x, int y, int z) { |
135 135 | Preconditions.checkState(biome != null, "ChunkSnapshot created without biome. Please call getSnapshot with includeBiome=true"); |