Skip to content

Commit

Permalink
Identify the pose metadata serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokechu22 committed Nov 12, 2020
1 parent ea15fc5 commit bf58b01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions burger/toppings/entitymetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ def identify_serializer(classloader, cls, classes, verbose):
elif content_cf.constants.find_one(type_=String, f=lambda c: c == "minecraft:air"):
# This method only works in 1.14, where BlockState isn't an interface
name = "BlockState"
elif content_cf.constants.find_one(type_=String, f=lambda c: c == "FALL_FLYING"):
assert content_cf.access_flags.acc_enum
name = "Pose"
elif content_cf.access_flags.acc_interface:
# Make some _very_ bad assumptions here; both of these are hard to identify:
if name_prefix == "Opt":
Expand Down

0 comments on commit bf58b01

Please sign in to comment.