Skip to content

Commit 3f01f01

Browse files
committed
4.0.1 Release
1 parent 29d3787 commit 3f01f01

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55

66
allprojects {
77
group = "com.viaversion"
8-
version = "4.0.1-1.17.1-rc1-SNAPSHOT"
8+
version = "4.0.1"
99
description = "Allow older clients to join newer server versions."
1010
}
1111

common/src/main/java/com/viaversion/viabackwards/api/rewriters/LegacyBlockItemRewriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ protected void handleChunk(Chunk chunk) {
174174
tags.put(pos, tag);
175175

176176
// Handle given Block Entities
177-
if (pos.getY() < 0) continue; // 1.17
177+
if (pos.getY() < 0 || pos.getY() > 255) continue; // 1.17
178178

179179
ChunkSection section = chunk.getSections()[pos.getY() >> 4];
180180
if (section == null) continue;

common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public void registerMap() {
302302
if (!provider.isHandled(id)) continue;
303303

304304
int sectionIndex = ((NumberTag) tag.get("y")).asInt() >> 4;
305-
if (sectionIndex < 0) {
305+
if (sectionIndex < 0 || sectionIndex > 15) {
306306
// 1.17 chunks
307307
continue;
308308
}

0 commit comments

Comments
 (0)