| | |
| | | return true |
| | | end |
| | | |
| | | local load_position = function(pos) |
| | | if minetest.get_node_or_nil(pos) then return end |
| | | local vm = VoxelManip() |
| | | local MinEdge, MaxEdge = vm:read_from_map(pos, pos) |
| | | end |
| | | |
| | | -- Generic function to add found connected nodes to the right classification array |
| | | local check_node_subp = function(PR_nodes, RE_nodes, BA_nodes, SP_nodes, all_nodes, pos, machines, tier, sw_pos) |
| | | load_position(pos) |
| | | technic.get_or_load_node(pos) |
| | | local meta = minetest.get_meta(pos) |
| | | local name = minetest.get_node(pos).name |
| | | |
| | |
| | | -- Run all the nodes |
| | | local function run_nodes(list) |
| | | for _, pos2 in ipairs(list) do |
| | | load_position(pos2) |
| | | technic.get_or_load_node(pos2) |
| | | local node2 = minetest.get_node(pos2) |
| | | local nodedef |
| | | if node2 and node2.name then |
| | |
| | | local meta = minetest.get_meta(pos) |
| | | local timeout = meta:get_int(tier.."_EU_timeout") |
| | | if timeout <= 0 then |
| | | --meta:set_int(tier.."_EU_input", 0) -- Not needed anymore |
| | | meta:set_int(tier.."_EU_input", 0) -- Not needed anymore <-- actually, it is for supply converter |
| | | return true |
| | | else |
| | | meta:set_int(tier.."_EU_timeout", timeout - 1) |