From 11d7b9f0cfe29ab6d6b5829c8e337b7cb67eeb18 Mon Sep 17 00:00:00 2001 From: Gregory A Lundberg Date: Tue, 28 Nov 2017 21:15:34 -0600 Subject: [PATCH] Fix mp_tests Don't know why it's not working but I can get it working by not performing the chat message. --- join.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/join.lua b/join.lua index 85ae6472563f..3d985bee4ec3 100644 --- a/join.lua +++ b/join.lua @@ -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({})