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:
parent
38c10bdeb9
commit
5adc78f349
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user