aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/WSCommandHandler.java
diff options
context:
space:
mode:
authorTorui <44932079+ToruiDev@users.noreply.github.com>2022-06-04 16:04:15 +0200
committerGitHub <noreply@github.com>2022-06-04 16:04:15 +0200
commitaf0b91dca38c64f915e666eeaa9c0837a7c91f97 (patch)
tree27d16b3971d3227f50637ed179f5381de5e45b71 /src/main/java/de/torui/coflsky/WSCommandHandler.java
parentcd127e92dfd9657977b180678dbe76306a3e917f (diff)
parentcab805393559a9a7e6433199aaf8591cc9a8ae98 (diff)
downloadCOFL-af0b91dca38c64f915e666eeaa9c0837a7c91f97.tar.gz
COFL-af0b91dca38c64f915e666eeaa9c0837a7c91f97.tar.bz2
COFL-af0b91dca38c64f915e666eeaa9c0837a7c91f97.zip
Merge pull request #64 from Coflnet/feature/limit-nobestflip
only send nobestflip once and clearify code
Diffstat (limited to 'src/main/java/de/torui/coflsky/WSCommandHandler.java')
-rw-r--r--src/main/java/de/torui/coflsky/WSCommandHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/torui/coflsky/WSCommandHandler.java b/src/main/java/de/torui/coflsky/WSCommandHandler.java
index ca583a2..ef15381 100644
--- a/src/main/java/de/torui/coflsky/WSCommandHandler.java
+++ b/src/main/java/de/torui/coflsky/WSCommandHandler.java
@@ -68,8 +68,8 @@ public class WSCommandHandler {
ChatMessage(showCmd);
flipHandler.fds.Insert(new de.torui.coflsky.FlipHandler.Flip(cmd.getData().Id, cmd.getData().Worth));
- //just to be safe emit a event
- CoflSky.Events.onEvent(null);
+ // trigger the keyevent to execute the event handler
+ CoflSky.Events.onKeyEvent(null);
}
private static void PlaySound(Command<SoundData> cmd, Entity sender) {