Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-22 06:20:06 +01:00
21 Zeilen
1.0 KiB
Diff
21 Zeilen
1.0 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Aikar <aikar@aikar.co>
|
||
|
Date: Sun, 7 Jun 2020 19:25:13 -0400
|
||
|
Subject: [PATCH] Use seed based lookup for Treasure Maps - Fixes lag from
|
||
|
carto/sunken maps
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/world/item/MapItem.java b/src/main/java/net/minecraft/world/item/MapItem.java
|
||
|
index 994a3c0253c7298fef1471736b74bd34ec87738a..305c0b0ca23eea6b8b32778a4bbe8a2eacc78107 100644
|
||
|
--- a/src/main/java/net/minecraft/world/item/MapItem.java
|
||
|
+++ b/src/main/java/net/minecraft/world/item/MapItem.java
|
||
|
@@ -258,7 +258,7 @@ public class MapItem extends ComplexItem {
|
||
|
|
||
|
for (l = 0; l < 128 * i; ++l) {
|
||
|
for (i1 = 0; i1 < 128 * i; ++i1) {
|
||
|
- abiomebase[l * 128 * i + i1] = world.getBiome(new BlockPos((j / i - 64) * i + i1, 0, (k / i - 64) * i + l));
|
||
|
+ abiomebase[l * 128 * i + i1] = world.getUncachedNoiseBiome((j / i - 64) * i + i1, 0, (k / i - 64) * i + l); // Paper
|
||
|
}
|
||
|
}
|
||
|
|