Skip to content

Commit

Permalink
Fix mp_tests
Browse files Browse the repository at this point in the history
Don't know why it's not working but I can get it working by not performing the chat message.
  • Loading branch information
GregoryLundberg committed Nov 29, 2017
1 parent 4dbe4fb commit 11d7b9f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions join.lua
Expand Up @@ -95,8 +95,13 @@ local function plugin()

events, context, info = coroutine.yield()

context.chat({message = "done first join"})

-- Don't know why THIS context has to chat member but it doesn't
-- Adding the guard if to bypass a script crash and get mp_tests running.
-- GAL 28NOV2017
if context.chat then
context.chat({message = "done first join"})
end

while not (info.name == "Dialog" or info.name == "Multiplayer Join") do
if context.join then
context.join({})
Expand Down

0 comments on commit 11d7b9f

Please sign in to comment.