mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-18 23:23:19 +01:00
Fix MapItem incorectly fetching water biomes on treasure maps (#11936)
This commit is contained in:
parent
6316a50dbd
commit
ea7b961926
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
for (int i5 = 0; i5 < 128; i5++) {
|
||||
for (int i6 = 0; i6 < 128; i6++) {
|
||||
- Holder<Biome> biome = serverLevel.getBiome(mutableBlockPos.set((i3 + i6) * i, 0, (i4 + i5) * i));
|
||||
+ Holder<Biome> biome = serverLevel.getUncachedNoiseBiome((i3 + i6) * i, 0, (i4 + i5) * i); // Paper - Perf: Use seed based lookup for treasure maps
|
||||
+ Holder<Biome> biome = serverLevel.getUncachedNoiseBiome(net.minecraft.core.QuartPos.fromBlock((i3 + i6) * i), net.minecraft.core.QuartPos.fromBlock(0), net.minecraft.core.QuartPos.fromBlock((i4 + i5) * i)); // Paper - Perf: Use seed based lookup for treasure maps
|
||||
flags[i5 * 128 + i6] = biome.is(BiomeTags.WATER_ON_MAP_OUTLINES);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue