mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-06 03:31:10 +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.terminalvelocity = new Vec3(27*32, 27*32, 27*32);
|
||||||
mob.friction = new Vec3(15*32, 0, 15*32);
|
mob.friction = new Vec3(15*32, 0, 15*32);
|
||||||
mob.size = new Vec3(0.75, 1.75, 0.75);
|
mob.size = new Vec3(0.75, 1.75, 0.75);
|
||||||
|
mob.health = 20;
|
||||||
mob.metadata = metadata;
|
mob.metadata = metadata;
|
||||||
|
|
||||||
mob.updateAndSpawn();
|
mob.updateAndSpawn();
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ module.exports.player=function(player,serv)
|
||||||
{
|
{
|
||||||
player.despawnPlayers = despawnedPlayers => {
|
player.despawnPlayers = despawnedPlayers => {
|
||||||
player._client.write('entity_destroy', {
|
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);
|
if (!size) size = new Vec3(1.0, 1.0, 1.0);
|
||||||
|
|
||||||
serv._writeNearby('world_particles', {
|
serv._writeArray('world_particles', {
|
||||||
particleId: particle,
|
particleId: particle,
|
||||||
longDistance: longDistance,
|
longDistance: longDistance,
|
||||||
x: position.x,
|
x: position.x,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue