From 4f3b073e407592160f6bb7db3977e9968f8560f7 Mon Sep 17 00:00:00 2001 From: mhsjlw Date: Fri, 28 Aug 2015 11:41:13 -0400 Subject: [PATCH] Added arm swinging animation --- lib/playerPlugins/animations.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/playerPlugins/animations.js diff --git a/lib/playerPlugins/animations.js b/lib/playerPlugins/animations.js new file mode 100644 index 0000000..a9a3b2b --- /dev/null +++ b/lib/playerPlugins/animations.js @@ -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 + }); + }); +} \ No newline at end of file