mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +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
|
||||
|
||||
--[[ --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 = {}
|
||||
|
@ -56,3 +56,5 @@ function beds.set_spawns()
|
||||
end
|
||||
beds.save_spawns()
|
||||
end
|
||||
|
||||
beds.read_spawns()
|
||||
|
Loading…
Reference in New Issue
Block a user