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

@ -115,15 +115,6 @@ end
--fun_caves.print_recipes()
minetest.register_on_respawnplayer(function(player)
local name = player:get_player_name()
if fun_caves.db.spawn[name] then
player:setpos(fun_caves.db.spawn[name])
return true
end
end)
local hunger_mod = minetest.get_modpath("hunger")
fun_caves.hunger_id = {}