3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-07-05 23:28:03 +02:00

Also remove block entities above 255 in chunk data for 1.17->1.16

Dieser Commit ist enthalten in:
Nassim Jahnke 2022-03-18 10:32:34 +01:00
Ursprung 31787b5e5b
Commit 12926980e2
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -309,7 +309,7 @@ public final class BlockItemPackets1_17 extends ItemRewriter<Protocol1_16_4To1_1
chunk.getBlockEntities().removeIf(compound -> {
NumberTag tag = compound.get("y");
return tag != null && tag.asInt() < 0;
return tag != null && (tag.asInt() < 0 || tag.asInt() > 255);
});
});
}