add override aliases behind a setting

This commit is contained in:
Starbeamrainbowlabs 2022-05-24 00:11:22 +01:00
parent 1750d62d3c
commit 9bfb428c3f
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -1,5 +1,6 @@
local wea_c = worldeditadditions_core local wea_c = worldeditadditions_core
wea_c.register_alias("smoothadv", "convolve") wea_c.register_alias("smoothadv", "convolve")
wea_c.register_alias("conv", "convolve") wea_c.register_alias("conv", "convolve")
@ -16,8 +17,8 @@ wea_c.register_alias("mfacing", "mface")
--- Overrides to core WorldEdit commands --- Overrides to core WorldEdit commands
-- These are commented out for now, as they could be potentially dangerous to stability -- These are commented out for now, as they could be potentially dangerous to stability
-- Thorough testing is required of our replacement commands before these are uncommented -- Thorough testing is required of our replacement commands before these are uncommented
-- TODO: Depend on worldeditadditions_core before uncommenting this if minetest.settings:get_bool("worldeditadditions.override_commands", false) then
-- BUG: //move+ seems to be leaving stuff behind for some strange reason --@sbrl 2021-12-26 worldeditadditions_core.register_alias("copy", "copy+", true)
-- worldeditadditions_core.alias_override("copy", "copy+") worldeditadditions_core.register_alias("move", "move+", true)
-- worldeditadditions_core.alias_override("move", "move+") -- MAY have issues where it doesn't overwrite the old region properly, but haven't been able to reliably reproduce this worldeditadditions_core.register_alias("replace", "replacemix", true)
-- worldeditadditions_core.alias_override("replace", "replacemix") end