diff --git a/mods/dreambuilder_extras/customize-dreambuilder-game.sh b/mods/dreambuilder_extras/customize-dreambuilder-game.sh index c97075ca..19ec6b6f 100755 --- a/mods/dreambuilder_extras/customize-dreambuilder-game.sh +++ b/mods/dreambuilder_extras/customize-dreambuilder-game.sh @@ -237,6 +237,14 @@ sed -i 's/"field\[.*\]"/ \ \t\t/' \ $workdir"/mods/technic/machines/switching_station.lua" +sed -i 's/"field\[.*")/ \ +\t\t\t\t\t\t"formspec_version[4]".. \ +\t\t\t\t\t\t"size[8,4]".. \ +\t\t\t\t\t\t"button_exit[3,2.5;2,0.5;proceed;Proceed]".. \ +\t\t\t\t\t\t"field[1.75,1.5;4.5,0.5;channel;Digiline Channel;"..meta:get_string("channel").."]" \ +\t\t\t\t\t)/' \ + $workdir"/mods/technic/machines/register/battery_box.lua" + sed -i "s/listcolors\[.*\]/listcolors[#FFFFFF30;#B0B0B0;#606060;#A0A0A0;#FFF] \ \n\t\t\tstyle_type[button;bgcolor="$btn_color"] \ \n\t\t\tstyle_type[button_exit;bgcolor="$btn_color"] \ diff --git a/mods/technic/machines/register/battery_box.lua b/mods/technic/machines/register/battery_box.lua index af8fd60d..30049a6d 100644 --- a/mods/technic/machines/register/battery_box.lua +++ b/mods/technic/machines/register/battery_box.lua @@ -337,7 +337,12 @@ function technic.register_battery_box(data) if fields.edit_channel then minetest.show_formspec(sender:get_player_name(), "technic:battery_box_edit_channel"..minetest.pos_to_string(pos), - "field[channel;Digiline Channel;"..meta:get_string("channel").."]") + + "formspec_version[4]".. + "size[8,4]".. + "button_exit[3,2.5;2,0.5;proceed;Proceed]".. + "field[1.75,1.5;4.5,0.5;channel;Digiline Channel;"..meta:get_string("channel").."]" + ) elseif fields["fs_helpers_cycling:0:split_src_stacks"] or fields["fs_helpers_cycling:0:split_dst_stacks"] or fields["fs_helpers_cycling:1:split_src_stacks"]