Skip to content
Snippets Groups Projects
Commit 1cc98db2 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'Broadcastbug' into 'master'

Fix no_chat_broadcast achievements not being checked everywhere

EXCITING

See merge request !466
parents b3322af7 14fc7cea
No related branches found
No related tags found
1 merge request!466Fix no_chat_broadcast achievements not being checked everywhere
Pipeline #
......@@ -112,7 +112,7 @@ function _M:gainPersonalAchievement(silent, id, src, ...)
local color = a.huge and "GOLD" or "LIGHT_GREEN"
game.log("#"..color.."#Personal New Achievement: %s!", a.name)
self:showAchievement("Personal New Achievement: #"..color.."#"..a.name, a)
profile.chat:achievement(a.name, a.huge, false)
if not a.no_chat_broadcast then profile.chat:achievement(a.name, a.huge, false) end
end
if a.on_gain then a:on_gain(src, true) end
return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment