1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-29 21:30:26 +02:00

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