Skip to content

Commit

Permalink
Merge pull request #175 from steffen-kiess/fix-version-1343
Browse files Browse the repository at this point in the history
Fix support for Minecraft version 1.12.2 (data version 1343)
  • Loading branch information
twoolie committed Oct 30, 2023
2 parents 402e6c6 + dd91e56 commit 3ba35c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbt/chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def __init__(self, nbt):
self.sections = {}
if 'Sections' in self.chunk_data:
for s in self.chunk_data['Sections']:
if "BlockStates" in s.keys(): # sections may only contain lighting information
if "BlockStates" in s.keys() or "Blocks" in s.keys(): # sections may only contain lighting information
self.sections[s['Y'].value] = AnvilSection(s, version)


Expand Down

0 comments on commit 3ba35c5

Please sign in to comment.