send server packet on interaction
This commit is contained in:
@ -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
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user