Describe the bug
Updating a map's location in a world via an extension doesn't update the undo stack, so it cannot be undone.
Steps to reproduce
Load a world file with at least one map.
Call world.setMapPos or setMapRect from an extension to move any map in the world.
try to undo the change, the map won't move back to it's previous location.
Expected behavior
Hitting undo should return the map to it's previous position.
OS version
Windows 11
Tiled version
1.11.2