aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Buttons.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Buttons.hx')
-rw-r--r--src/client/Buttons.hx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/Buttons.hx b/src/client/Buttons.hx
index aa7e1cc..b023ab7 100644
--- a/src/client/Buttons.hx
+++ b/src/client/Buttons.hx
@@ -311,13 +311,7 @@ class Buttons {
case L:
main.toggleLeader();
case P:
- if (!main.isLeader()) {
- JsApi.once(SetLeader, event -> {
- final name = event.setLeader.clientName;
- if (name == main.getName()) player.pause();
- });
- }
- main.toggleLeader();
+ main.toggleLeaderAndPause();
default:
return;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage