add override aliases behind a setting

This commit is contained in:
Starbeamrainbowlabs 2022-05-24 00:11:22 +01:00
parent 1750d62d3c
commit 9bfb428c3f
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -1,5 +1,6 @@
local wea_c = worldeditadditions_core
wea_c.register_alias("smoothadv", "convolve")
wea_c.register_alias("conv", "convolve")
@ -16,8 +17,8 @@ wea_c.register_alias("mfacing", "mface")
--- Overrides to core WorldEdit commands
-- 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
-- TODO: Depend on worldeditadditions_core before uncommenting this
-- BUG: //move+ seems to be leaving stuff behind for some strange reason --@sbrl 2021-12-26
-- worldeditadditions_core.alias_override("copy", "copy+")
-- 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.alias_override("replace", "replacemix")
if minetest.settings:get_bool("worldeditadditions.override_commands", false) then
worldeditadditions_core.register_alias("copy", "copy+", true)
worldeditadditions_core.register_alias("move", "move+", true)
worldeditadditions_core.register_alias("replace", "replacemix", true)
end