Fix bed spawns.
parent
9e495c41de
commit
c5fae605f1
|
@ -543,6 +543,15 @@ function loud_walking.generate(p_minp, p_maxp, seed)
|
|||
end
|
||||
|
||||
function loud_walking.respawn(player)
|
||||
local player_name = player:get_player_name()
|
||||
if not player_name then
|
||||
return
|
||||
end
|
||||
|
||||
if beds and beds.spawn and beds.spawn[player_name] then
|
||||
return
|
||||
end
|
||||
|
||||
while true do
|
||||
local px = math.random(-10, 10) * 2 - 1
|
||||
local pz = math.random(-10, 10) * 2
|
||||
|
|
Loading…
Reference in New Issue