double furnace fix

This commit is contained in:
Brevven 2023-04-10 00:22:40 -07:00
parent a7cf1d1107
commit 6942f11a52
5 changed files with 13 additions and 6 deletions

View file

@ -1,9 +1,10 @@
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
if game.players[event.player_index].force.recipes["cuw"] then
game.players[event.player_index].force.recipes["cuw"].enabled=true
end
util.force_enable_recipe(event, "cuw")
util.force_enable_recipe(event, "double-tungsten")
end
end)