Fix LBM with dark_<color> blocks

This commit is contained in:
Sys Quatre 2020-09-07 02:16:01 +02:00
parent f116c1d6cf
commit 4e596096fa
1 changed files with 3 additions and 1 deletions

View File

@ -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)