-
Notifications
You must be signed in to change notification settings - Fork 187
Add /undo command
#1228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add /undo command
#1228
Conversation
| } | ||
| if(source.worldEditData.undoHistory.pop()) |action| { | ||
| action.blueprint.paste(action.position); | ||
| source.sendMessage("#00ff00Un-done last {s}.", .{action.message}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to also print the position?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, it might be confusing, especially for brushes, cause brushes are applied from center while undo position for them will be min x min y min z. That reminds me that @min can be used on vectors.
Co-authored-by: IntegratedQuantum <43880493+IntegratedQuantum@users.noreply.github.com>
This pull request adds
/undocommand which can be used to revert changes done to world with world editing commands.Related to: #1214
Related to: #1238