Add first experimental version of a (programmable) microcontroller

This commit is contained in:
Jeija
2012-08-08 13:26:32 +02:00
parent 10fe94dea7
commit ef740353ef
5 changed files with 323 additions and 17 deletions

View File

@ -227,7 +227,7 @@ end
function mesecon:is_power_on(pos)
local node = minetest.env:get_node(pos)
if node.name == "mesecons:mesecon_on" or mesecon:is_receptor_node(node.name) then
if mesecon:is_conductor_on(node.name) or mesecon:is_receptor_node(node.name) then
return true
end
return false