Fix LegacyKeyframeSetAdapter swallowing spectatedEntityID values of non-legacy Keyframes
This commit is contained in:
@@ -53,7 +53,11 @@ public class LegacyKeyframeSetAdapter extends TypeAdapter<KeyframeSet[]> {
|
|||||||
spectatedEntityID = in.nextInt();
|
spectatedEntityID = in.nextInt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(spectatedEntityID != null) {
|
||||||
newKeyframe.getValue().setSpectatedEntityID(spectatedEntityID);
|
newKeyframe.getValue().setSpectatedEntityID(spectatedEntityID);
|
||||||
|
}
|
||||||
|
|
||||||
in.endObject();
|
in.endObject();
|
||||||
|
|
||||||
keyframes.add(newKeyframe);
|
keyframes.add(newKeyframe);
|
||||||
|
|||||||
Reference in New Issue
Block a user