10 lines
436 B
Lua
10 lines
436 B
Lua
local util = require("control-util")
|
|
|
|
script.on_event( defines.events.on_console_chat, function(event)
|
|
-- refresh recipes, in case of settings change
|
|
if event.message and event.message == "TungstenRecipes" and (not event.player_index or not game.players[event.player_index] or game.players[event.player_index].admin) then
|
|
util.force_enable_recipe(event, "cuw")
|
|
util.force_enable_recipe(event, "double-tungsten")
|
|
end
|
|
end)
|
|
|