Beds: Save respawn position when entering bed, only read bed spawns once

No longer require night to be skipped for resawn position to be saved
Remove constant beds.read_spawns() calls when a player joins as this
is only required once
This commit is contained in:
tenplus1 2016-05-20 11:40:15 +01:00 committed by paramat
parent b74954969c
commit d7a7456007
2 changed files with 3 additions and 5 deletions

View file

@ -37,6 +37,8 @@ function beds.read_spawns()
end
end
beds.read_spawns()
function beds.save_spawns()
if not beds.spawn then
return