mirror of
https://github.com/minetest-mods/carpets.git
synced 2025-03-09 06:12:27 +01:00
prefer the front site for carpet if exists
This commit is contained in:
@ -36,6 +36,10 @@ function carpet.register(recipe, def)
|
|||||||
|
|
||||||
node.description = node.description or recipe_def.description.." Carpet"
|
node.description = node.description or recipe_def.description.." Carpet"
|
||||||
node.tiles = node.tiles or recipe_def.tiles
|
node.tiles = node.tiles or recipe_def.tiles
|
||||||
|
if node.tiles[6] then -- prefer "front" site for carpet
|
||||||
|
node.tiles = {node.tiles[6]}
|
||||||
|
end
|
||||||
|
|
||||||
node.sounds = node.sounds or recipe_def.sounds
|
node.sounds = node.sounds or recipe_def.sounds
|
||||||
node.groups = node.groups or recipe_def.groups or {}
|
node.groups = node.groups or recipe_def.groups or {}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user