summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--technic/machines/LV/cnc.lua2
-rw-r--r--technic/machines/LV/cnc_api.lua3
-rw-r--r--technic/machines/LV/cnc_nodes.lua18
3 files changed, 13 insertions, 10 deletions
diff --git a/technic/machines/LV/cnc.lua b/technic/machines/LV/cnc.lua
index 58ec6ba..6ca9b3c 100644
--- a/technic/machines/LV/cnc.lua
+++ b/technic/machines/LV/cnc.lua
@@ -171,7 +171,7 @@ local run = function(pos, node)
meta:set_int("src_time", meta:get_int("src_time") + 1)
if meta:get_int("src_time") >= 3 then -- 3 ticks per output
meta:set_int("src_time", 0)
- srcstack = inv:get_stack("src", 1)
+ local srcstack = inv:get_stack("src", 1)
srcstack:take_item()
inv:set_stack("src", 1, srcstack)
inv:add_item("dst", result.." "..meta:get_int("cnc_multiplier"))
diff --git a/technic/machines/LV/cnc_api.lua b/technic/machines/LV/cnc_api.lua
index f5aae5c..6637fb7 100644
--- a/technic/machines/LV/cnc_api.lua
+++ b/technic/machines/LV/cnc_api.lua
@@ -303,7 +303,8 @@ function technic.cnc.register_program(recipeitem, suffix, model, groups, images,
walkable = true,
groups = groups,
selection_box = sbox,
- collision_box = cbox
+ collision_box = cbox,
+ light_source = groups.light_source,
})
end
diff --git a/technic/machines/LV/cnc_nodes.lua b/technic/machines/LV/cnc_nodes.lua
index 3f8b263..2ca5d82 100644
--- a/technic/machines/LV/cnc_nodes.lua
+++ b/technic/machines/LV/cnc_nodes.lua
@@ -145,14 +145,6 @@ technic.cnc.register_all("default:silver_sandstone_block",
-
--- LEAVES
----------
-technic.cnc.register_all("default:leaves",
- {snappy=2, choppy=2, oddly_breakable_by_hand=3, not_in_creative_inventory=1},
- {"default_leaves.png"},
- S("Leaves"))
-
-- TREE
-------
technic.cnc.register_all("default:tree",
@@ -261,3 +253,13 @@ technic.cnc.register_all("technic:granite",
{"technic_granite.png"},
S("Granite"))
+
+if minetest.get_modpath("ethereal") then
+ -- Glostone
+ ------------
+ technic.cnc.register_all("ethereal:glostone",
+ {cracky=1, not_in_creative_inventory=1, light_source=13},
+ {"glostone.png"},
+ S("Glo Stone"))
+
+end