Fixed chat popup for server

This commit is contained in:
Cooldude2606
2020-04-08 19:50:40 +01:00
parent c450bda234
commit 24b2b0703e

View File

@@ -9,6 +9,7 @@ local config = require 'config.popup_messages' --- @dep config.popup_messages
local send_text = Game.print_player_floating_text -- (player_index, text, color)
Event.add(defines.events.on_console_chat,function(event)
if not event.player_index or event.player_index < 1 then return end
local player = Game.get_player_by_index(event.player_index)
-- Some basic sanity checks