From 4e596096fadd4591bb4e6fbb202915f7bc00f326 Mon Sep 17 00:00:00 2001 From: sys4 Date: Mon, 7 Sep 2020 02:16:01 +0200 Subject: [PATCH] Fix LBM with dark_ blocks --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e2bafa0..37b9beb 100644 --- a/init.lua +++ b/init.lua @@ -626,7 +626,9 @@ minetest.register_lbm({ colorclass == "micro" or colorclass == "slope" then class = colorclass local colorshape = string.sub(name, b+1) - local c,d = string.find(colorshape, "dark_") or 0,0 + local c,d = string.find(colorshape, "dark_") + if not c then c = 0 end + if not d then d = 0 end local colshapetemp = string.sub(colorshape, d+1) c = string.find(colshapetemp, "_") or 0 shape = string.sub(colshapetemp, c)