mapEdits.restore
Cancels one map edit. Overlapping edits still apply to each affected object.
Signature
Section titled “Signature”mapEdits.restore(id: number): Promise<ActionResult>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
id |
number |
The ID from mapEdits.hide. |
Returns
Section titled “Returns”An ActionResult. An unknown edit returns map-edit-not-found.
Example
Section titled “Example”import { mapEdits } from "nativemp";
for (const edit of mapEdits.listAll()) await mapEdits.restore(edit.id);