Skip to content

Commit

Permalink
Remove prev_owner when renaming area
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Oct 31, 2024
1 parent f9b4353 commit 3f4875a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chatcommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ minetest.register_chatcommand("rename_area", {
newName = sub8(newName, 1, areas.config.max_area_name_length)

areas.areas[id].name = newName
areas.areas[id].prev_owner = nil
areas:save()
return true, S("Area renamed.")
end
Expand Down

0 comments on commit 3f4875a

Please sign in to comment.