mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-06 03:31:10 +00:00
don't force entities to despawn when they die, the client figures out when to do that itself, fix #156
This commit is contained in:
parent
8776a2baa7
commit
6207010a02
1 changed files with 1 additions and 6 deletions
|
|
@ -68,13 +68,8 @@ module.exports.entity=function(entity,serv)
|
||||||
entityId: entity.id,
|
entityId: entity.id,
|
||||||
entityStatus: 3
|
entityStatus: 3
|
||||||
});
|
});
|
||||||
if(entity.type!="player") {
|
if(entity.type!="player")
|
||||||
delete serv.entities[entity.id];
|
delete serv.entities[entity.id];
|
||||||
setTimeout(() => {
|
|
||||||
entity.nearbyPlayers().forEach(otherPlayer => otherPlayer.despawnEntities([entity]));
|
|
||||||
},2000);
|
|
||||||
// this is the duration of the despawning animation, it should change for every entity (see EnderDragon)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (animation)
|
else if (animation)
|
||||||
entity._writeOthers('animation',{
|
entity._writeOthers('animation',{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue