From 5569e7537a59f2bd50d9b8678733cc4139a86446 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Wed, 9 Aug 2017 15:31:55 +0200 Subject: [PATCH] made player spawn function mg_villages.spawnplayer accessible --- spawn_player.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spawn_player.lua b/spawn_player.lua index 6a3e62f..ecba312 100644 --- a/spawn_player.lua +++ b/spawn_player.lua @@ -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)