Skip to content

Commit

Permalink
Fix KeyError: 'particle' in older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokechu22 committed Nov 12, 2020
1 parent 278e75e commit ffd0520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion burger/toppings/entitymetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def identify_serializer(classloader, cls, classes, verbose):
name = "BlockPos"
elif inner_type == classes["blockstate"]:
name = "BlockState"
elif inner_type == classes["particle"]:
elif inner_type == classes.get("particle"): # doesn't exist in all versions
name = "Particle"
else:
# Try some more tests, based on the class itself:
Expand Down

0 comments on commit ffd0520

Please sign in to comment.