Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-07 16:50:14 +01: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()) {
|
if (chunk.isGroundUp()) {
|
||||||
int[] biomeData = chunk.getBiomeData();
|
int[] biomeData = chunk.getBiomeData();
|
||||||
int[] newBiomeData = new int[1024];
|
int[] newBiomeData = new int[1024];
|
||||||
|
if (biomeData != null) {
|
||||||
// Now in 4x4x4 areas - take the biome of each "middle"
|
// Now in 4x4x4 areas - take the biome of each "middle"
|
||||||
for (int i = 0; i < 4; ++i) {
|
for (int i = 0; i < 4; ++i) {
|
||||||
for (int j = 0; j < 4; ++j) {
|
for (int j = 0; j < 4; ++j) {
|
||||||
@ -114,6 +115,7 @@ public class WorldPackets {
|
|||||||
for (int i = 1; i < 64; ++i) {
|
for (int i = 1; i < 64; ++i) {
|
||||||
System.arraycopy(newBiomeData, 0, newBiomeData, i * 16, 16);
|
System.arraycopy(newBiomeData, 0, newBiomeData, i * 16, 16);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
chunk.setBiomeData(newBiomeData);
|
chunk.setBiomeData(newBiomeData);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren