1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

fix useless multi reading file(lag?), only read on loading mod

This commit is contained in:
crabman77 2016-04-07 16:56:11 +02:00
parent cbb5522f05
commit 8b21b2dca2
2 changed files with 4 additions and 1 deletions

View File

@ -176,10 +176,11 @@ end
-- callbacks -- callbacks
--[[ --MFF (Crabman) It's useless to read each join player, read only once at load. function moved/called in spawn.lua
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
beds.read_spawns() beds.read_spawns()
end) end)
--]]
local dead_players = {} local dead_players = {}

View File

@ -56,3 +56,5 @@ function beds.set_spawns()
end end
beds.save_spawns() beds.save_spawns()
end end
beds.read_spawns()