Skip to content

Commit

Permalink
Fixed crash when GPS is used with direct coordinates.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCubee committed Mar 21, 2022
1 parent bf9c80c commit 63bd7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/mrcubee/waypoint/GPS.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private boolean sendLocationDirection(final Player player, final Object target)
if (targetLocation instanceof WayPoint)
sendActionBar(player, targetLocation, "gps.action_bar.waypoint", ((WayPoint) targetLocation).getName());
else
sendActionBar(player, targetLocation, "gps.action_bar.waypoint", ((WayPoint) targetLocation).getName());
sendActionBar(player, targetLocation, "gps.action_bar.location", null);
return true;
}
return false;
Expand Down

0 comments on commit 63bd7b5

Please sign in to comment.