mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 09:33:52 +01: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
@ -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 New Issue
Block a user