mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Cleaned up use of the Game module
This commit is contained in:
@@ -10,7 +10,7 @@ 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)
|
||||
local player = game.players[event.player_index]
|
||||
|
||||
-- Some basic sanity checks
|
||||
if not player then return end
|
||||
|
||||
Reference in New Issue
Block a user