Skip to content

Commit

Permalink
fix lingering priv area
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jun 1, 2020
1 parent 72b0b34 commit d1c6582
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions areas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,8 @@ minetest.register_chatcommand("area_priv_get", {
return true, "Area " .. id .. " required priv: " .. (priv_areas[id] or "<none>")
end,
})

areas:registerOnRemove(function(id)
priv_areas[id] = nil
save_priv_areas()
end)

0 comments on commit d1c6582

Please sign in to comment.