diff --git a/src/lib/plugins/pvp.js b/src/lib/plugins/pvp.js index 5103e02..2e4dfeb 100644 --- a/src/lib/plugins/pvp.js +++ b/src/lib/plugins/pvp.js @@ -47,11 +47,12 @@ module.exports.entity=function(entity,serv) entity.sendVelocity(velocity.scaled(1/32), maxVelocity); - if(entity.health<=0 && animation) { - entity._writeOthers('entity_status', { - entityId: entity.id, - entityStatus: 3 - }); + if(entity.health<=0) { + if(animation) + entity._writeOthers('entity_status', { + entityId: entity.id, + entityStatus: 3 + }); if(entity.type!="player") { delete serv.entities[entity.id]; setTimeout(() => {