mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
correct if/else in line 42
This commit is contained in:
parent
c572c27326
commit
e9703c409e
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@ minetest.register_chatcommand("awards", {
|
|||
if param == "enable" then
|
||||
awards.enable(name)
|
||||
minetest.chat_send_player(name, S("You have enabled your advancements."))
|
||||
return
|
||||
end
|
||||
|
||||
if awards.player(name).disabled then
|
||||
|
@ -37,8 +38,8 @@ minetest.register_chatcommand("awards", {
|
|||
elseif param == "disable" then
|
||||
awards.disable(name)
|
||||
minetest.chat_send_player(name, S("You have disabled your advancements."))
|
||||
else param == "c" then
|
||||
awards.show_to(name, name, nil, true)
|
||||
else
|
||||
awards.show_to(name, name, nil, false)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue