mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-05 01:03:44 +01:00
fixes
This commit is contained in:
parent
a6e0605b7c
commit
07513d8e52
@ -92,8 +92,12 @@ mcl_commands.types = {
|
|||||||
|
|
||||||
function mcl_commands.match_param(table, index, type, params)
|
function mcl_commands.match_param(table, index, type, params)
|
||||||
local typedef = mcl_commands.types[type]
|
local typedef = mcl_commands.types[type]
|
||||||
local params = {}
|
if typedef.lengh > 1 then
|
||||||
typedef.func()
|
return
|
||||||
|
else
|
||||||
|
local params = {}
|
||||||
|
typedef.func()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_commands.registered_commands = {}
|
mcl_commands.registered_commands = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user