send server packet on interaction

This commit is contained in:
2023-03-24 09:45:45 -07:00
parent 4d74ac0f5b
commit 7028439206

View File

@ -330,6 +330,10 @@ function interact() {
if (!punching) { if (!punching) {
punching = true; punching = true;
interact_interval = setInterval(interaction_animation, 1000/fps, Date.now()); interact_interval = setInterval(interaction_animation, 1000/fps, Date.now());
server.send(JSON.stringify({
"type": "interact",
"data": undefined
}));
} }
} }