From 7028439206ffd16b91d3241454913d8bc40de4e4 Mon Sep 17 00:00:00 2001 From: zakarya Date: Fri, 24 Mar 2023 09:45:45 -0700 Subject: [PATCH] send server packet on interaction --- script/game.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/game.js b/script/game.js index c3bec26..b6f656c 100644 --- a/script/game.js +++ b/script/game.js @@ -330,6 +330,10 @@ function interact() { if (!punching) { punching = true; interact_interval = setInterval(interaction_animation, 1000/fps, Date.now()); + server.send(JSON.stringify({ + "type": "interact", + "data": undefined + })); } }