Skip to content

Commit 3f4875a

Browse files
committed
Remove prev_owner when renaming area
1 parent f9b4353 commit 3f4875a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chatcommands.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ minetest.register_chatcommand("rename_area", {
169169
newName = sub8(newName, 1, areas.config.max_area_name_length)
170170

171171
areas.areas[id].name = newName
172+
areas.areas[id].prev_owner = nil
172173
areas:save()
173174
return true, S("Area renamed.")
174175
end

0 commit comments

Comments
 (0)