Skip to content

Commit

Permalink
Update Chunk.java
Browse files Browse the repository at this point in the history
hopefully fixed Querz#95 on newer worlds
  • Loading branch information
Rayregula authored Feb 15, 2024
1 parent 9133f65 commit 80189b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/net/querz/mca/Chunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ private void initReferences(long loadFlags) {
return;
}

CompoundTag level;
if ((level = data.getCompoundTag("Level")) == null) {
throw new IllegalArgumentException("data does not contain \"Level\" tag");
}
CompoundTag level = data;
dataVersion = data.getInt("DataVersion");
inhabitedTime = level.getLong("InhabitedTime");
lastUpdate = level.getLong("LastUpdate");
Expand Down

0 comments on commit 80189b6

Please sign in to comment.