We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eac4795 commit 176ddbaCopy full SHA for 176ddba
mods/beds/api.lua
@@ -17,6 +17,8 @@ local function destruct_bed(pos, n)
17
reverse = not reverse
18
minetest.remove_node(other)
19
minetest.check_for_falling(other)
20
+ beds.remove_spawns_at(pos)
21
+ beds.remove_spawns_at(other)
22
else
23
24
end
mods/beds/spawns.lua
@@ -61,3 +61,12 @@ function beds.set_spawns()
61
62
beds.save_spawns()
63
64
+
65
+function beds.remove_spawns_at(pos)
66
+ for name, p in pairs(beds.spawn) do
67
+ if vector.equals(vector.round(p), pos) then
68
+ beds.spawn[name] = nil
69
+ end
70
71
+ beds.save_spawns()
72
+end
Finally this is actual gameplay fix I wanted all those years!
1 commit comments
Fixer-007 commentedon Jan 29, 2020
Finally this is actual gameplay fix I wanted all those years!