1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-02-09 13:37:05 +02:00

popup bug fix

This commit is contained in:
grilledham 2018-06-19 20:08:39 +01:00
parent f9bb6ca461
commit 699c11ebd4

View File

@ -71,7 +71,13 @@ local function popup(cmd)
return
end
local message = cmd.parameter:gsub('\\n', '\n')
local message = cmd.parameter
if not message then
player_print('Usage: /popup <message>')
return
end
message = message:gsub('\\n', '\n')
for _, p in ipairs(game.connected_players) do
show_popup(p, message)