1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Merge pull request #858 from plague006/fix/onboarding

Fix onboarding for server
This commit is contained in:
Matthew 2019-03-04 16:29:08 -05:00 committed by GitHub
commit afc7995a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,10 @@ end
-- This will also gives us a measure of how many players engage in chat in a map. -- This will also gives us a measure of how many players engage in chat in a map.
local function on_player_chat(event) local function on_player_chat(event)
local player_index = event.player_index local player_index = event.player_index
if not player_index then
return
end
local player = Game.get_player_by_index(player_index) local player = Game.get_player_by_index(player_index)
if not player or not player.valid then if not player or not player.valid then
return return