Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-04 23:30:24 +01:00
More optimization
Dieser Commit ist enthalten in:
Ursprung
6608877ef0
Commit
73ee2498e8
@ -215,11 +215,18 @@ public class WorldPackets {
|
||||
if (section == null)
|
||||
continue;
|
||||
|
||||
boolean willStoreAnyBlock = false;
|
||||
|
||||
for (int p = 0; p < section.getPalette().size(); p++) {
|
||||
int old = section.getPalette().get(p);
|
||||
section.getPalette().set(p, toNewId(old));
|
||||
int newId = toNewId(old);
|
||||
if (storage.isWelcome(newId)) {
|
||||
willStoreAnyBlock = true;
|
||||
}
|
||||
section.getPalette().set(p, newId);
|
||||
}
|
||||
|
||||
if (willStoreAnyBlock) {
|
||||
for (int x = 0; x < 16; x++) {
|
||||
for (int y = 0; y < 16; y++) {
|
||||
for (int z = 0; z < 16; z++) {
|
||||
@ -235,6 +242,7 @@ public class WorldPackets {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Rewrite biome id 255 to plains
|
||||
if (chunk.isBiomeData()) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren