Skip to content
Snippets Groups Projects
Commit 14fc7cea authored by Chris Davidson's avatar Chris Davidson
Browse files

Fix no_chat_broadcast achievements not being checked everywhere

parent 80456626
No related branches found
No related tags found
1 merge request!466Fix no_chat_broadcast achievements not being checked everywhere
......@@ -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