diff options
author | est31 <MTest31@outlook.com> | 2015-09-12 08:02:43 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-09-12 08:04:07 +0200 |
commit | 54b6d9976cada36645ea573339d3683699a3dc90 (patch) | |
tree | 1795ec9a58a040b99c8bc063ce4f08998faff912 | |
parent | e7d06b33d172ca48d7ea6bb7f99dd93c0a7cc2e2 (diff) |
CNC: re-add player inventory to formspec
Fix regression of commit
d732c8dfbd818e9b0b4a04620af40399b35c74ab - "Add listring functionality"
by @est31 (me xD).
-rw-r--r-- | technic/machines/LV/cnc.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/technic/machines/LV/cnc.lua b/technic/machines/LV/cnc.lua index 17d23d8..dd67e9b 100644 --- a/technic/machines/LV/cnc.lua +++ b/technic/machines/LV/cnc.lua @@ -73,6 +73,7 @@ local cnc_formspec = "label[4, 5.5;"..S("Out:").."]".. "list[current_name;dst;5,5.5;4,1;]".. + "list[current_player;main;0,7;8,4;]".. "listring[current_name;dst]".. "listring[current_player;main]".. "listring[current_name;src]".. @@ -140,7 +141,7 @@ local run = function(pos, node) local demand = 450 local result = meta:get_string("cnc_product") - if inv:is_empty("src") or + if inv:is_empty("src") or (not minetest.registered_nodes[result]) or (not inv:room_for_item("dst", result)) then technic.swap_node(pos, machine_node) @@ -230,7 +231,7 @@ minetest.register_craft({ recipe = { {'default:glass', 'technic:diamond_drill_head', 'default:glass'}, {'technic:control_logic_unit', 'technic:machine_casing', 'technic:motor'}, - {'technic:carbon_steel_ingot', 'technic:lv_cable0', 'technic:carbon_steel_ingot'}, + {'technic:carbon_steel_ingot', 'technic:lv_cable0', 'technic:carbon_steel_ingot'}, }, }) |