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:
parent
b74954969c
commit
d7a7456007
2 changed files with 3 additions and 5 deletions
|
@ -37,6 +37,8 @@ function beds.read_spawns()
|
|||
end
|
||||
end
|
||||
|
||||
beds.read_spawns()
|
||||
|
||||
function beds.save_spawns()
|
||||
if not beds.spawn then
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue