From 68d578e05a3dedc250b18333dd299879c07d2d38 Mon Sep 17 00:00:00 2001 From: jp Date: Thu, 6 Aug 2015 15:26:13 +0200 Subject: [PATCH] Don't cast a shadow on micronodes --- worktable.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/worktable.lua b/worktable.lua index 3762942..4753a52 100644 --- a/worktable.lua +++ b/worktable.lua @@ -149,6 +149,11 @@ for n=1, #def do return {cracky=3, not_in_creative_inventory=1} end + local function shady(w) + if string.find(w, "stair") or w == "slab" then return false end + return true + end + xdecor.register(w[1].."_"..m, { description = description(m), light_source = ndef.light_source, @@ -156,6 +161,7 @@ for n=1, #def do tiles = ndef.tiles, groups = groups(m), node_box = {type = "fixed", fixed = w[3]}, + sunlight_propagates = shady(w[1]), on_place = minetest.rotate_node }) end