Skip to content

Commit

Permalink
made player spawn function mg_villages.spawnplayer accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
Sokomine committed Aug 9, 2017
1 parent aeadb8c commit 5569e75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spawn_player.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 5569e75

Please sign in to comment.