mirror of
https://github.com/minetest-mods/carpets.git
synced 2024-12-21 04:45:42 +01:00
prefer the front site for carpet if exists
This commit is contained in:
parent
157c2ba08d
commit
a579c1b6b9
@ -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 {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user