summaryrefslogtreecommitdiff
path: root/mesecons_microcontroller
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-11-08 19:27:31 -0500
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-11-08 19:27:31 -0500
commitd41791b735df980912250d4dca7b3e140eecbf28 (patch)
tree0d67460542587457fc76e0bae76830d8c6409025 /mesecons_microcontroller
parent680f259468f9a47c0bc8ea5890ea37c5758a8c30 (diff)
downloaddreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.tar
dreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.tar.gz
dreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.tar.bz2
dreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.tar.xz
dreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.zip
update basic_materials, biome_lib, plantlife modpack,
coloredwood, homedecor, technic, currency, framedglass, gloopblocks, led_marquee, mesecons, moretrees, nixie_tubes, pipeworks, plasticbox, prefab_redo, castles, signs_lib, roads, worldedit Added license declaration for the modpack itself
Diffstat (limited to 'mesecons_microcontroller')
-rw-r--r--mesecons_microcontroller/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua
index 9b1bf3b..f9ba979 100644
--- a/mesecons_microcontroller/init.lua
+++ b/mesecons_microcontroller/init.lua
@@ -571,6 +571,7 @@ yc.command_parsecondition = function(cond, L, eeprom)
if cond:sub(i+1, i+1) == nil then break end
if s == "&" then
if a==nil then return nil end
+ if b==nil then return nil end
local buf = ((a==1) and (b==1))
if buf == true then buf = "1" end
if buf == false then buf = "0" end
@@ -580,6 +581,7 @@ yc.command_parsecondition = function(cond, L, eeprom)
end
if s == "|" then
if a==nil then return nil end
+ if b==nil then return nil end
local buf = ((a == 1) or (b == 1))
if buf == true then buf = "1" end
if buf == false then buf = "0" end
@@ -589,6 +591,7 @@ yc.command_parsecondition = function(cond, L, eeprom)
end
if s == "~" then
if a==nil then return nil end
+ if b==nil then return nil end
local buf = (((a == 1) or (b == 1)) and not((a==1) and (b==1)))
if buf == true then buf = "1" end
if buf == false then buf = "0" end