Skip to content

Commit

Permalink
Only change the logic if the original cast had a position
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Jul 20, 2024
1 parent cf13d67 commit d2bc965
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected Event convert(FieldMapper<Fields> fields, int lineNumber, ZonedDateTim
if (x == 0.0 && y == 0.0 && z == 0.0) {
AbilityCastStart precursor = last.getPrecursor();
DescribesCastLocation<AbilityCastStart> castLocation;
if (precursor != null && (castLocation = precursor.getLocationInfo()) != null) {
if (precursor != null && (castLocation = precursor.getLocationInfo()) != null && castLocation.getPos() != null) {
slde = new SnapshotLocationDataEvent(last, castLocation);
}
else if (h == 0.0) {
Expand Down

0 comments on commit d2bc965

Please sign in to comment.