From 9cfb13d60cca687bbfbb4f1eb8738bf4b5730b2c Mon Sep 17 00:00:00 2001 From: Kyle Date: Fri, 24 Aug 2012 20:59:26 -0700 Subject: =?UTF-8?q?pressing=20enter=20will=20reprogram=20the=20=C2=B5C=20i?= =?UTF-8?q?nstead=20of=20acting=20like=20escape?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mesecons_microcontroller/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua index f531853..984606d 100644 --- a/mesecons_microcontroller/init.lua +++ b/mesecons_microcontroller/init.lua @@ -73,7 +73,7 @@ minetest.register_node(nodename, { fields.code = "if(A)sbi(1,1); if(!A&B)off(B)sbi(1,0); if(!A&!B)on(B)sbi(1,0); :A is input, B is output (Q), toggles with falling edge" elseif fields.brsflop then fields.code = "if(A)on(C);if(B)off(C); :A is S (Set), B is R (Reset), C is output (R dominates)" - elseif fields.program then --nothing + elseif fields.program or fields.code then --nothing else return nil end meta:set_string("code", fields.code) -- cgit v1.2.3