Use wood group by default in recipes
This commit is contained in:
parent
5c32db6181
commit
ebc6e75da9
2
init.lua
2
init.lua
|
@ -85,7 +85,7 @@ kotatsu_table.pos_check = {
|
||||||
kotatsu_table.register_table = function(name, desc, base, tiles, top, top_tiles, inv_image)
|
kotatsu_table.register_table = function(name, desc, base, tiles, top, top_tiles, inv_image)
|
||||||
base = base or "wool:white" --Seriously, though, don't omit base...
|
base = base or "wool:white" --Seriously, though, don't omit base...
|
||||||
tiles = tiles or (minetest.registered_nodes[base] or {tiles={"wool_white.png"}}).tiles
|
tiles = tiles or (minetest.registered_nodes[base] or {tiles={"wool_white.png"}}).tiles
|
||||||
top = top or "default:wood"
|
top = top or "group:wood"
|
||||||
top_tiles = top_tiles or (minetest.registered_nodes[top] or {tiles={"default_wood.png"}}).tiles
|
top_tiles = top_tiles or (minetest.registered_nodes[top] or {tiles={"default_wood.png"}}).tiles
|
||||||
inv_image = inv_image or "(kotatsu_base.png^[mask:"..tiles[1]..")^(kotatsu_top.png^[mask:"..top_tiles[1]..")"
|
inv_image = inv_image or "(kotatsu_base.png^[mask:"..tiles[1]..")^(kotatsu_top.png^[mask:"..top_tiles[1]..")"
|
||||||
local kotatsu = name or ("kotatsu_table:table_"..string.gsub(base, ":", "_"))
|
local kotatsu = name or ("kotatsu_table:table_"..string.gsub(base, ":", "_"))
|
||||||
|
|
Ŝarĝante…
Reference in New Issue