Use the beds spawn table for /setspawn.
This commit is contained in:
parent
fdd130c1a5
commit
e43aa31279
3 changed files with 2 additions and 10 deletions
9
init.lua
9
init.lua
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue