Skip to content

Commit

Permalink
Other crash fixed.
Browse files Browse the repository at this point in the history
Fixed a crash when the Player$Spigot class does not contain the correct sendMessage method.
  • Loading branch information
MrCubee committed Oct 8, 2022
1 parent 760b62e commit f2c168e
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 @@ -83,7 +83,7 @@ private boolean sendLocationDirection(final Player player, final Object target)
if (target instanceof Location) {
targetLocation = (Location) target;
if (player.getWorld().equals(targetLocation.getWorld()) && targetLocation.distance(player.getLocation()) < 2) {
player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent());
this.actionBarSender.send(player, "");
return false;
}
if (targetLocation instanceof WayPoint)
Expand Down

0 comments on commit f2c168e

Please sign in to comment.