show animation when player is hurt, start #17

This commit is contained in:
Romain Beaumont 2015-08-27 23:36:58 +02:00
parent caedd14632
commit 56e0e93a3f

View file

@ -11,6 +11,11 @@ function inject(serv, player)
foodSaturation: 0.0,
health: attackedPlayer.entity.health
});
attackedPlayer._writeOthers('animation',{
entityId:attackedPlayer.entity.id,
animation:1
});
}
player._client.on("use_entity", function(packet) {