made player spawn function mg_villages.spawnplayer accessible

This commit is contained in:
Sokomine 2017-08-09 15:31:55 +02:00
parent aeadb8ca8e
commit 5569e7537a

View File

@ -1,6 +1,6 @@
local function spawnplayer(player)
mg_villages.spawnplayer = function(player)
if( minetest.settings and minetest.settings:get("static_spawnpoint")) then
return;
end
@ -37,11 +37,11 @@ local function spawnplayer(player)
end
minetest.register_on_newplayer(function(player)
spawnplayer(player)
mg_villages.spawnplayer(player)
end)
minetest.register_on_respawnplayer(function(player)
spawnplayer(player)
mg_villages.spawnplayer(player)
return true
end)