mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
Fix doc in info, expand doc task, fix MP check in player_create
This commit is contained in:
parent
f305cb74f0
commit
d6e8b145af
@ -816,7 +816,7 @@ function Public.add_map_extra_info(value)
|
||||
create_map_extra_info(value, false)
|
||||
end
|
||||
|
||||
--- Overrides all info added via add_map_extra_info. It is an error to call this more than once.
|
||||
--- Overrides all info added via add_map_extra_info.
|
||||
-- This should only be used in maps, never in features/modules.
|
||||
-- Use case: for maps that know exactly what features they're using and
|
||||
-- want full control over the info presented.
|
||||
|
@ -62,7 +62,7 @@ local function player_created(event)
|
||||
|
||||
if _DEBUG and player.admin then
|
||||
UserGroups.add_regular(player.name)
|
||||
if game.is_multiplayer then
|
||||
if game.is_multiplayer() then
|
||||
game.print("THIS MULTIPLAYER MAP IS IN DEBUG!!!")
|
||||
else
|
||||
game.print("DON'T LAUNCH THIS MAP! DEBUG MODE IS ENABLED!!!")
|
||||
|
@ -72,6 +72,7 @@ local function on_tick()
|
||||
end
|
||||
|
||||
--- Allows you to set a timer (in ticks) after which the tokened function will be run with params given as an argument
|
||||
-- Cannot be called before init
|
||||
-- @param ticks <number>
|
||||
-- @param func_token <number> a token for a function store via the token system
|
||||
-- @param params <any> the argument to send to the tokened function
|
||||
@ -82,6 +83,7 @@ function Task.set_timeout_in_ticks(ticks, func_token, params)
|
||||
end
|
||||
|
||||
--- Allows you to set a timer (in seconds) after which the tokened function will be run with params given as an argument
|
||||
-- Cannot be called before init
|
||||
-- @param sec <number>
|
||||
-- @param func_token <number> a token for a function store via the token system
|
||||
-- @param params <any> the argument to send to the tokened function
|
||||
|
Loading…
x
Reference in New Issue
Block a user