3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-10-03 08:51:05 +02:00
Dieser Commit ist enthalten in:
KennyTV 2021-07-04 12:03:57 +02:00
Ursprung 29d3787de8
Commit 3f01f0100c
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -5,7 +5,7 @@ plugins {
allprojects {
group = "com.viaversion"
version = "4.0.1-1.17.1-rc1-SNAPSHOT"
version = "4.0.1"
description = "Allow older clients to join newer server versions."
}

Datei anzeigen

@ -174,7 +174,7 @@ public abstract class LegacyBlockItemRewriter<T extends BackwardsProtocol> exten
tags.put(pos, tag);
// Handle given Block Entities
if (pos.getY() < 0) continue; // 1.17
if (pos.getY() < 0 || pos.getY() > 255) continue; // 1.17
ChunkSection section = chunk.getSections()[pos.getY() >> 4];
if (section == null) continue;

Datei anzeigen

@ -302,7 +302,7 @@ public class BlockItemPackets1_13 extends com.viaversion.viabackwards.api.rewrit
if (!provider.isHandled(id)) continue;
int sectionIndex = ((NumberTag) tag.get("y")).asInt() >> 4;
if (sectionIndex < 0) {
if (sectionIndex < 0 || sectionIndex > 15) {
// 1.17 chunks
continue;
}