fix invite crashing when inviting no one
This commit is contained in:
parent
a8e6a58779
commit
849d62a09d
4
init.lua
4
init.lua
@ -752,7 +752,7 @@ minetest.register_chatcommand("p", {
|
|||||||
else party.send_notice(name, "Player "..param2.." does not exist!")
|
else party.send_notice(name, "Player "..param2.." does not exist!")
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif param1 == "invite" then
|
elseif param1 == "invite" and param2 ~= nil then
|
||||||
if cparty ~= "" then
|
if cparty ~= "" then
|
||||||
if party.check(name, 2) == true then
|
if party.check(name, 2) == true then
|
||||||
return
|
return
|
||||||
@ -1118,4 +1118,4 @@ end
|
|||||||
|
|
||||||
party.set_value = function(value, newvalue)
|
party.set_value = function(value, newvalue)
|
||||||
mod_storage:set_string(value, newvalue)
|
mod_storage:set_string(value, newvalue)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user