mesecons compatibility: can be activated by mesecons signal and can activate mesecons blocks. to turn on wires use delayer first

master
rnd1 2017-01-19 12:04:12 +01:00
parent 953d05586f
commit 211d007609
2 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,7 @@ basic_robot.commands.take_item = function(name,item, inventory,dir)
inv:add_item("main",stack);
tinv:remove_item(inventory, stack);
return contains
return true
end
basic_robot.commands.check_inventory = function(name,itemname, inventory,dir)

View File

@ -776,6 +776,7 @@ minetest.register_entity("basic_robot:robot",{
local spawn_robot = function(pos,node,ttl)
if type(ttl) ~= "number" then ttl = 0 end
if ttl<0 then return end
local meta = minetest.get_meta(pos);