mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-04-08 09:41:24 +02: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:
@ -58,6 +58,9 @@ local function register_command(cmdname, options)
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
wea_c.registered_commands[cmdname] = options
|
wea_c.registered_commands[cmdname] = options
|
||||||
|
if minetest.global_exists("worldedit") then
|
||||||
|
worldedit.registered_commands[cmdname] = options
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return register_command
|
return register_command
|
||||||
|
Reference in New Issue
Block a user