From 6b189c850acc446aedf79714babd75609743adc4 Mon Sep 17 00:00:00 2001 From: plague006 Date: Mon, 4 Mar 2019 16:20:53 -0500 Subject: [PATCH] Fix for server --- features/player_onboarding.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/features/player_onboarding.lua b/features/player_onboarding.lua index 13df5703..f4684280 100644 --- a/features/player_onboarding.lua +++ b/features/player_onboarding.lua @@ -86,6 +86,10 @@ end -- This will also gives us a measure of how many players engage in chat in a map. local function on_player_chat(event) local player_index = event.player_index + if not player_index then + return + end + local player = Game.get_player_by_index(player_index) if not player or not player.valid then return