Use the beds spawn table for /setspawn.

This commit is contained in:
Duane 2016-06-25 20:54:56 -05:00
parent fdd130c1a5
commit e43aa31279
3 changed files with 2 additions and 10 deletions

View file

@ -27,7 +27,7 @@ minetest.register_chatcommand("setspawn", {
func = function(name, param)
local player = minetest.get_player_by_name(name)
local pos = player:getpos()
fun_caves.db.spawn[name] = pos
beds.spawn[name] = pos
minetest.chat_send_player(name, 'Your spawn position has been changed.')
end,
})