wea.move: add potential solution as a comment

This commit is contained in:
Starbeamrainbowlabs 2021-12-31 03:05:02 +00:00
parent 934007c07b
commit d252ec4675
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -49,6 +49,13 @@ function worldeditadditions.move(source_pos1, source_pos2, target_pos1, target_p
-- BUG: Voxel Manipulators cover a larger area than the source area if the target position is too close the to the source, then the source will be overwritten by the target by accident. -- BUG: Voxel Manipulators cover a larger area than the source area if the target position is too close the to the source, then the source will be overwritten by the target by accident.
-- Potential solution:
-- 1. Grab source & target
-- 2. Perform copy
-- 3. Save move
-- 4. Re-grab source
-- 5. Zero out source, but avoiding touching any nodes that fall within target
worldedit.manip_helpers.finish(manip_source, data_source) worldedit.manip_helpers.finish(manip_source, data_source)
worldedit.manip_helpers.finish(manip_target, data_target) worldedit.manip_helpers.finish(manip_target, data_target)