mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
add override aliases behind a setting
This commit is contained in:
parent
1750d62d3c
commit
9bfb428c3f
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue