Skip to content

Commit

Permalink
Merge pull request #20 from peunsu/dev
Browse files Browse the repository at this point in the history
Fix exception raised when parsing empty `Array` tags.
  • Loading branch information
peunsu authored May 13, 2024
2 parents ed97f31 + 413ecb0 commit 6657472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ftb_snbt_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
from .tag import *
from .write import *

__version__ = '0.3.0'
__version__ = '0.3.1'
__all__ = ['parse', 'tag', 'write']
2 changes: 1 addition & 1 deletion ftb_snbt_lib/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def p_list(p):
def p_array(p):
"""array : LBRACKET TYPE SEMICOLON values RBRACKET
| LBRACKET TYPE SEMICOLON RBRACKET"""
if len(p) == 4:
if len(p) == 5:
p[0] = Array(p[2], [])
else:
p[0] = Array(p[2], p[4])
Expand Down

0 comments on commit 6657472

Please sign in to comment.