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
--[[ --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)
beds.read_spawns()
end)
--]]
local dead_players = {}

View File

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