Skip to content
This repository was archived by the owner on May 8, 2023. It is now read-only.

Quick fix for error when getting blocks for old MC version #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion anvil/chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def stream_blocks(self, index: int=0, section: Union[int, nbt.TAG_Compound]=None
if section is None or isinstance(section, int):
section = self.get_section(section or 0)

if self.version < _VERSION_17w47a:
if self.version is None or self.version < _VERSION_17w47a:
if section is None or 'Blocks' not in section:
air = Block.from_name('minecraft:air') if force_new else OldBlock(0)
for i in range(4096):
Expand Down