Reset spawn position on bed destruction
This commit is contained in:
parent
eac4795326
commit
176ddba176
2 changed files with 11 additions and 0 deletions
|
@ -17,6 +17,8 @@ local function destruct_bed(pos, n)
|
|||
reverse = not reverse
|
||||
minetest.remove_node(other)
|
||||
minetest.check_for_falling(other)
|
||||
beds.remove_spawns_at(pos)
|
||||
beds.remove_spawns_at(other)
|
||||
else
|
||||
reverse = not reverse
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue