forked from minetest-mods/unifiedbricks
Fix LBM with dark_<color> blocks
This commit is contained in:
parent
f116c1d6cf
commit
4e596096fa
4
init.lua
4
init.lua
@ -626,7 +626,9 @@ minetest.register_lbm({
|
|||||||
colorclass == "micro" or colorclass == "slope" then
|
colorclass == "micro" or colorclass == "slope" then
|
||||||
class = colorclass
|
class = colorclass
|
||||||
local colorshape = string.sub(name, b+1)
|
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)
|
local colshapetemp = string.sub(colorshape, d+1)
|
||||||
c = string.find(colshapetemp, "_") or 0
|
c = string.find(colshapetemp, "_") or 0
|
||||||
shape = string.sub(colshapetemp, c)
|
shape = string.sub(colshapetemp, c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user