mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-14 10:13:13 +02:00
Merge pull request #191 from grilledham/master
added is-meltdown command
This commit is contained in:
commit
4088d1ca87
@ -161,7 +161,16 @@ local function reactor_toggle()
|
||||
end
|
||||
end
|
||||
|
||||
local function is_meltdown()
|
||||
if global.reactors_enabled then
|
||||
player_print('Reactor metldown is enabled.')
|
||||
else
|
||||
player_print('Reactor metldown is disabled.')
|
||||
end
|
||||
end
|
||||
|
||||
commands.add_command('meltdown', 'Toggles if reactors blow up', reactor_toggle)
|
||||
commands.add_command('is-meltdown', 'Prints if meltdown is enabled', is_meltdown)
|
||||
|
||||
Event.on_nth_tick(60, on_tick)
|
||||
Event.add(defines.events.on_player_mined_entity, entity_destroyed)
|
||||
|
Loading…
Reference in New Issue
Block a user