aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/WSCommandHandler.java
diff options
context:
space:
mode:
authorÄkwav <ekwav@coflnet.com>2022-06-04 14:46:42 +0200
committerÄkwav <ekwav@coflnet.com>2022-06-04 14:46:42 +0200
commitcab805393559a9a7e6433199aaf8591cc9a8ae98 (patch)
tree27d16b3971d3227f50637ed179f5381de5e45b71 /src/main/java/de/torui/coflsky/WSCommandHandler.java
parentcd127e92dfd9657977b180678dbe76306a3e917f (diff)
downloadCOFL-cab805393559a9a7e6433199aaf8591cc9a8ae98.tar.gz
COFL-cab805393559a9a7e6433199aaf8591cc9a8ae98.tar.bz2
COFL-cab805393559a9a7e6433199aaf8591cc9a8ae98.zip
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) {