aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Zajc <marko@zajc.eu.org>2023-02-18 14:40:29 +0100
committerMarko Zajc <marko@zajc.eu.org>2023-02-18 14:40:29 +0100
commita3a63d6bea88de81816c75225df75a97074d28d6 (patch)
treecff7c8fdb5c519756fe8bda275b88de246802c51
parentf6a2067452a2577fb08374bcb6910940e8389b9c (diff)
Resolve ambiguity with keepPrompt on confirm(f) overloads
-rw-r--r--src/main/java/libot/commands/AkinatorCommand.java2
-rw-r--r--src/main/java/libot/commands/UnoCommand.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/libot/commands/AkinatorCommand.java b/src/main/java/libot/commands/AkinatorCommand.java
index e295a1a..cfe6ffc 100644
--- a/src/main/java/libot/commands/AkinatorCommand.java
+++ b/src/main/java/libot/commands/AkinatorCommand.java
@@ -278,7 +278,7 @@ public class AkinatorCommand extends Command {
278 if (image != null) 278 if (image != null)
279 e.setImage(image.toString()); 279 e.setImage(image.toString());
280 280
281 return c.confirm(e, true); 281 return c.confirm(true, e);
282 } 282 }
283 283
284 private static void finish(@Nonnull CommandContext c, boolean win) { 284 private static void finish(@Nonnull CommandContext c, boolean win) {
diff --git a/src/main/java/libot/commands/UnoCommand.java b/src/main/java/libot/commands/UnoCommand.java
index 2c3c2bc..5931296 100644
--- a/src/main/java/libot/commands/UnoCommand.java
+++ b/src/main/java/libot/commands/UnoCommand.java
@@ -217,7 +217,7 @@ public class UnoCommand extends BettableGame {
217 217
218 @Override 218 @Override
219 public boolean shouldPlayDrawnCard(UnoGame game, UnoCard drawnCard, UnoPlayer next) { 219 public boolean shouldPlayDrawnCard(UnoGame game, UnoCard drawnCard, UnoPlayer next) {
220 return this.c.confirmf(FORMAT_PLAYER_CONFIRM_PLACE_DRAWN, LITHIUM, true, getEmoteWithName(this.c, drawnCard)); 220 return this.c.confirmf(true, FORMAT_PLAYER_CONFIRM_PLACE_DRAWN, LITHIUM, getEmoteWithName(this.c, drawnCard));
221 } 221 }
222 222
223 @SuppressWarnings("null") 223 @SuppressWarnings("null")