mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-18 22:11:07 +00:00
Last fixes
This commit is contained in:
parent
8215985f7f
commit
4d7f000b61
3 changed files with 3 additions and 2 deletions
|
|
@ -51,6 +51,7 @@ module.exports.server=function(serv,options) {
|
|||
mob.terminalvelocity = new Vec3(27*32, 27*32, 27*32);
|
||||
mob.friction = new Vec3(15*32, 0, 15*32);
|
||||
mob.size = new Vec3(0.75, 1.75, 0.75);
|
||||
mob.health = 20;
|
||||
mob.metadata = metadata;
|
||||
|
||||
mob.updateAndSpawn();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ module.exports.player=function(player,serv)
|
|||
{
|
||||
player.despawnPlayers = despawnedPlayers => {
|
||||
player._client.write('entity_destroy', {
|
||||
'entityIds': despawnedPlayers.map(p => p.entity.id)
|
||||
'entityIds': despawnedPlayers.map(p => p.id)
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ module.exports.server=function(serv) {
|
|||
}));
|
||||
if (!size) size = new Vec3(1.0, 1.0, 1.0);
|
||||
|
||||
serv._writeNearby('world_particles', {
|
||||
serv._writeArray('world_particles', {
|
||||
particleId: particle,
|
||||
longDistance: longDistance,
|
||||
x: position.x,
|
||||
|
|
|
|||
Loading…
Reference in a new issue