mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-12 19:11:41 +00:00
most objects don't despawn and don't get picked up, fix #121
This commit is contained in:
parent
f250e4b2a4
commit
82dbd722fd
2 changed files with 1 additions and 2 deletions
|
|
@ -118,7 +118,6 @@ module.exports.player=function(player,serv)
|
|||
blockDropDeath: 60*5*1000
|
||||
}, (data) => {
|
||||
player.changeBlock(data.position,0,0);
|
||||
console.log('dropping',data.dropBlock);
|
||||
if (data.dropBlock) dropBlock(data);
|
||||
}, cancelDig)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ module.exports.server=function(serv,options) {
|
|||
return entity;
|
||||
};
|
||||
|
||||
serv.spawnObject = (type, world, position, {pitch=0,yaw=0,velocity=new Vec3(0,0,0),data=1,itemId,itemDamage=0,pickupTime=500,deathTime=60*1000}={}) => {
|
||||
serv.spawnObject = (type, world, position, {pitch=0,yaw=0,velocity=new Vec3(0,0,0),data=1,itemId,itemDamage=0,pickupTime=undefined,deathTime=undefined}) => {
|
||||
var object = serv.initEntity('object', type, world, position.scaled(32).floored());
|
||||
object.data = data;
|
||||
object.velocity = velocity.scaled(32).floored();
|
||||
|
|
|
|||
Loading…
Reference in a new issue