fix missing input slot on electric alloy furnaces

master
Vanessa Dannenberg 2021-06-30 06:07:13 -04:00
parent 6f5758d1c3
commit 63c9fe0c0a
2 changed files with 15 additions and 1 deletions

View File

@ -335,6 +335,14 @@ sed -i "/formspec = formspec/ {
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(1, 2.95, 2, 1, false)..
}" $workdir"/mods/technic/machines/register/machine_base.lua"
# this bit makes electric alloy furnaces look right
sed -i "/if data\.upgrade then/ {
i \\\tif data.typename == \"alloy\" then
i \\\t\tformspec = formspec .. dreambuilder_theme.single_slot_v1(2, 0.95, false)
i \\\tend
}" $workdir"/mods/technic/machines/register/machine_base.lua"
sed -i "/size\[8,9;\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(0, 4.97, 8, 1, true)..
@ -342,7 +350,7 @@ sed -i "/size\[8,9;\]/ {
a \\\t\tdreambuilder_theme.single_slot_v1(3, 0.95, false)..
}" $workdir"/mods/technic/machines/register/generator.lua"
# this alloy furnace change will match in two places, on purpose.
# this coal alloy furnace change will match in two places, on purpose.
sed -i "/size\[8,9\]/ {
a \\\t\t$LISTCOLORS_HIDE_SLOTS
a \\\t\tdreambuilder_theme.make_inv_img_grid_v1(2, 0.95, 2, 1, false)..

View File

@ -64,6 +64,9 @@ function technic.register_base_machine(data)
"listring[current_player;main]"..
"listring[current_name;src]"..
"listring[current_player;main]"
if data.typename == "alloy" then
formspec = formspec .. dreambuilder_theme.single_slot_v1(2, 0.95, false)
end
if data.upgrade then
formspec = formspec..
dreambuilder_theme.make_inv_img_grid_v1(1, 2.95, 2, 1, false)..
@ -101,6 +104,9 @@ function technic.register_base_machine(data)
end
local EU_upgrade, tube_upgrade = 0, 0
if data.typename == "alloy" then
formspec = formspec .. dreambuilder_theme.single_slot_v1(2, 0.95, false)
end
if data.upgrade then
EU_upgrade, tube_upgrade = technic.handle_machine_upgrades(meta)
end