1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-11 14:49:24 +02:00

Fix luacheck

This commit is contained in:
Gerkiz 2022-12-31 22:57:25 +01:00
parent 1621a7c1c0
commit 969e1cc895
2 changed files with 4 additions and 4 deletions

View File

@ -1550,8 +1550,8 @@ function Public.on_research_finished(event)
local players = game.connected_players
for i = 1, #players do
local player = players[i]
Modifiers.update_player_modifiers(player)
local p = players[i]
Modifiers.update_player_modifiers(p)
end
if research.name == 'steel-axe' then

View File

@ -227,8 +227,8 @@ function Public.show_mvps(player)
this.game_won = true
this.game_reset_tick = 5400
Alert.alert_all_players(900, 'Winner winner chicken dinner!\n[color=red]' .. this.winner.name .. '[/color] has won the game!', nil, 'restart_required', 1.0)
for _, player in pairs(game.connected_players) do
player.play_sound {path = 'utility/game_won', volume_modifier = 0.75}
for _, p in pairs(game.connected_players) do
p.play_sound {path = 'utility/game_won', volume_modifier = 0.75}
end
local message = {
title = 'Game over',