Last fixes

This commit is contained in:
DemiPixel 2015-11-20 14:38:05 -08:00
parent 8215985f7f
commit 4d7f000b61
3 changed files with 3 additions and 2 deletions

View file

@ -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();

View file

@ -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)
});
};

View file

@ -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,