double furnace fix
This commit is contained in:
parent
a7cf1d1107
commit
6942f11a52
5 changed files with 13 additions and 6 deletions
|
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.7.11
|
||||
Date: 2023-04-10
|
||||
Fixes:
|
||||
- Double furnace: fixed to work with double furnace again (broken in 7.10)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.7.10
|
||||
Date: 2023-03-25
|
||||
Fixes:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ for i, entity in pairs(data.raw.furnace) do
|
|||
table.insert(entity.crafting_categories, "smelting-carbon")
|
||||
end
|
||||
for j, category in pairs(entity.crafting_categories) do
|
||||
if category == "smelting" then
|
||||
if category == "smelting" or category == "double-smelting" then
|
||||
if entity.name == "double-steel-furnace" then
|
||||
table.insert(entity.crafting_categories, "double-smelting-carbon")
|
||||
else
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bztungsten",
|
||||
"version": "0.7.10",
|
||||
"version": "0.7.11",
|
||||
"factorio_version": "1.1",
|
||||
"title": "Tungsten",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
3
me.lua
3
me.lua
|
|
@ -13,7 +13,8 @@ me.recipes = {me.tungsten_plate, me.tungsten_carbide_recipe, "rocket-engine-nozz
|
|||
"tungsten-carbide-coal",}
|
||||
|
||||
me.tungsten_processing = "tungsten-processing"
|
||||
if mods.bobplates then
|
||||
|
||||
if mods and mods.bobplates then
|
||||
me.tungsten_processing = "bz-tungsten-processing"
|
||||
me.tungsten_carbide_recipe = "bz-tungsten-carbide"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue