mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 09:33:52 +01:00
add override aliases behind a setting
This commit is contained in:
parent
1750d62d3c
commit
9bfb428c3f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user