mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-05 11:10:44 +00:00
Added arm swinging animation
This commit is contained in:
parent
b00110d19a
commit
4f3b073e40
1 changed files with 11 additions and 0 deletions
11
lib/playerPlugins/animations.js
Normal file
11
lib/playerPlugins/animations.js
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
module.exports=inject;
|
||||||
|
|
||||||
|
function inject(serv, player)
|
||||||
|
{
|
||||||
|
player._client.on("arm_animation", function(packet) {
|
||||||
|
player._writeOthers("animation", {
|
||||||
|
entityId: player.entity.id,
|
||||||
|
animation: 0
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue