1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Fixed crash on /regular when player was already a regular

This commit is contained in:
Valansch 2017-09-03 20:13:50 +02:00
parent 38c10bdeb9
commit 5adc78f349

View File

@ -17,7 +17,7 @@ end
function add_regular(player_name)
local actor = get_actor()
if is_regular(player_name) then player_print.print(player_name .. " is already a regular.")
if is_regular(player_name) then player_print(player_name .. " is already a regular.")
else
if game.players[player_name] then
game.print(actor .. " promoted " .. player_name .. " to regular.")