Skip to content
Snippets Groups Projects
Commit c5fae605 authored by Duane Robertson's avatar Duane Robertson
Browse files

Fix bed spawns.

parent 9e495c41
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment