Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-09-16 01:01:21 +02:00
Fix biomedata on some custom Spigot versions
Dieser Commit ist enthalten in:
Ursprung
c1b11a55d5
Commit
1002ca4016
@ -101,6 +101,7 @@ public class WorldPackets {
|
||||
if (chunk.isGroundUp()) {
|
||||
int[] biomeData = chunk.getBiomeData();
|
||||
int[] newBiomeData = new int[1024];
|
||||
if (biomeData != null) {
|
||||
// Now in 4x4x4 areas - take the biome of each "middle"
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
for (int j = 0; j < 4; ++j) {
|
||||
@ -114,6 +115,7 @@ public class WorldPackets {
|
||||
for (int i = 1; i < 64; ++i) {
|
||||
System.arraycopy(newBiomeData, 0, newBiomeData, i * 16, 16);
|
||||
}
|
||||
}
|
||||
|
||||
chunk.setBiomeData(newBiomeData);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren