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

Unnested if statement

This commit is contained in:
SimonFlapse 2018-11-15 16:54:16 +01:00
parent f17f4ea312
commit 3e6b0c32c4

View File

@ -134,12 +134,10 @@ local function hodor(event)
local cannot_mention = {}
for _, p in ipairs(game.connected_players) do
if admin_call then
if p.admin then
if admin_call and p.admin then
p.print(prefix..Game.get_player_by_index(event.player_index).name..' mentioned #admin!', {r = 1, g = 1, b = 0, a = 1})
p.play_sound{path='utility/new_objective', volume_modifier = 1 }
end
end
if not admin_call and '#'..p.name == word then
if p.name == player.name then