mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-26 02:10:18 +01:00
Bugfix for last push
This commit is contained in:
parent
ca4a8cd264
commit
9854160ece
@ -5,6 +5,11 @@ for b = 0, 1 do
|
|||||||
for c = 0, 1 do
|
for c = 0, 1 do
|
||||||
for d = 0, 1 do
|
for d = 0, 1 do
|
||||||
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
|
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
|
||||||
|
if tostring(d)..tostring(c)..tostring(b)..tostring(a) ~= "0000" then
|
||||||
|
groups = {dig_immediate=2, not_in_creative_inventory=1}
|
||||||
|
else
|
||||||
|
groups = {dig_immediate=2}
|
||||||
|
end
|
||||||
minetest.register_node(nodename, {
|
minetest.register_node(nodename, {
|
||||||
description = "Microcontroller",
|
description = "Microcontroller",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -16,7 +21,7 @@ minetest.register_node(nodename, {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {dig_immediate=2},
|
groups = groups,
|
||||||
material = minetest.digprop_constanttime(1.0),
|
material = minetest.digprop_constanttime(1.0),
|
||||||
drop = '"mesecons_microcontroller:microcontroller0000" 1',
|
drop = '"mesecons_microcontroller:microcontroller0000" 1',
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -141,7 +146,7 @@ function parse_yccode(code, pos)
|
|||||||
else
|
else
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
if L == nil then return nil end
|
if Lvirtual == nil then return nil end
|
||||||
if eeprom == nil then return nil else
|
if eeprom == nil then return nil else
|
||||||
minetest.env:get_meta(pos):set_string("eeprom", eeprom) end
|
minetest.env:get_meta(pos):set_string("eeprom", eeprom) end
|
||||||
end
|
end
|
||||||
@ -245,6 +250,7 @@ function yc_command_if(code, starti, L, eeprom)
|
|||||||
if cond == "0" then result = false
|
if cond == "0" then result = false
|
||||||
elseif cond == "1" then result = true
|
elseif cond == "1" then result = true
|
||||||
else result = nil end
|
else result = nil end
|
||||||
|
if result == nil then end
|
||||||
return result, endi --endi from local cond, endi = yc_command_if_getcondition(code, starti)
|
return result, endi --endi from local cond, endi = yc_command_if_getcondition(code, starti)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user