| | |
| | | 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 |
| | |
| | | if machines[node.name] and switching_station_timeout_count(pos, tier) then |
| | | local nodedef = minetest.registered_nodes[node.name] |
| | | if nodedef and nodedef.technic_disabled_machine_name then |
| | | print(nodedef.technic_disabled_machine_name) |
| | | node.name = nodedef.technic_disabled_machine_name |
| | | minetest.swap_node(pos, node) |
| | | elseif nodedef and nodedef.technic_on_disable then |
| | | nodedef.technic_on_disable(pos, node) |
| | | end |
| | | if nodedef then |
| | | local meta = minetest.get_meta(pos) |