mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
core: if worldedit is installed also register commands there
This ensures that e.g. //cubeapply continues to work as expected
This commit is contained in:
parent
8de49ac0af
commit
c2c0fa5d8d
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ local function register_command(cmdname, options)
|
|||
end
|
||||
})
|
||||
wea_c.registered_commands[cmdname] = options
|
||||
if minetest.global_exists("worldedit") then
|
||||
worldedit.registered_commands[cmdname] = options
|
||||
end
|
||||
end
|
||||
|
||||
return register_command
|
||||
|
|
Loading…
Reference in a new issue