Skip to content

Commit

Permalink
Fixed CallbackAllCommand
Browse files Browse the repository at this point in the history
Closes #301
  • Loading branch information
Lorenzo0111 committed Jun 14, 2024
1 parent 6c6b75d commit b088515
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void perform(CommandSender sender, String[] args) {
int count = 0;

for (VehicleEntity ve : new ArrayList<>(Main.vehicles)) {
if (Bukkit.getPlayer(ve.getOwner()) != null) {
if (ve.getOwner() != null && Bukkit.getPlayer(ve.getOwner()) != null) {
VehicleUtils.callback(ve, Bukkit.getPlayer(ve.getOwner()));
count++;
}
Expand Down

0 comments on commit b088515

Please sign in to comment.