self.delete_timer = self.delete_timer + dtime
--this is where the item gets removed from world
- if self.delete_timer > 0.2 then
+ if self.delete_timer > 0.1 then
self.object:remove()
end
return
pitch = math.random(60,100)/100
})
inv:add_item("main", ItemStack(object:get_luaentity().itemstring))
- object:moveto({x=pos.x,y=pos.y+eye_height,z=pos.z})
+ object:moveto({x=pos.x,y=pos.y+eye_height,z=pos.z,continuous=true})
object:get_luaentity().collected = true
end
end