Fixes command context for bukkit console command sender (#2193)

This commit is contained in:
Phillipp Glanz
2023-05-12 13:12:08 +02:00
committed by GitHub
parent dd6197922c
commit c57fee5b86
2 changed files with 6 additions and 2 deletions

View File

@ -24,7 +24,7 @@ public class ConfirmHandler implements CommandCallListener {
}
Optional<Actor> actorOpt = parameters.injectedValue(Key.of(Actor.class));
if (!actorOpt.isPresent()) {
if (actorOpt.isEmpty()) {
return;
}
Actor actor = actorOpt.get();