mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
fix useless multi reading file(lag?), only read on loading mod
This commit is contained in:
parent
cbb5522f05
commit
8b21b2dca2
@ -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 = {}
|
||||||
|
@ -56,3 +56,5 @@ function beds.set_spawns()
|
|||||||
end
|
end
|
||||||
beds.save_spawns()
|
beds.save_spawns()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
beds.read_spawns()
|
||||||
|
Loading…
Reference in New Issue
Block a user