mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-25 18:20:39 +01:00
Fix another bug of the move_area chatcommand
This commit is contained in:
parent
93942db2c1
commit
1c4a5a4834
@ -307,6 +307,10 @@ minetest.register_chatcommand("move_area", {
|
||||
|
||||
areas.areas[id].pos1 = pos1
|
||||
areas.areas[id].pos2 = pos2
|
||||
|
||||
areas.store:remove_area(areas.store_ids[id])
|
||||
areas.store:insert_area(pos1, pos2, tostring(id))
|
||||
|
||||
areas:save()
|
||||
return true, "Area successfully moved."
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user