Skip to content

Commit

Permalink
4.0.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytv committed Jul 5, 2021
1 parent 29d3787 commit 3f01f01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ protected void handleChunk(Chunk chunk) {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public void registerMap() {
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;
}
Expand Down

0 comments on commit 3f01f01

Please sign in to comment.