From f421c673727ff03adfbf8d0c3d4fa2c807555df6 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 22 May 2019 09:39:06 +0200 Subject: [PATCH] Fix Centered Wooden Tile crafting This closes #145. --- CHANGELOG.md | 4 ++++ crafting.lua | 20 +++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6199159..02dd4d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. for their smaller visual size. - The minimum supported Minetest version is now 5.0.0. +### Fixed + +- Fixed a recipe conflict that made Centered Wooden Tiles impossible to craft. + ## [1.3.0] - 2019-03-23 ### Changed diff --git a/crafting.lua b/crafting.lua index 468667d..0655391 100644 --- a/crafting.lua +++ b/crafting.lua @@ -35,15 +35,6 @@ minetest.register_craft({ recipe = {"default:junglegrass", "default:cobble"}, }) -minetest.register_craft({ - output = "moreblocks:wood_tile_center 9", - recipe = { - {"group:wood", "group:wood", "group:wood"}, - {"group:wood", "moreblocks:wood_tile", "group:wood"}, - {"group:wood", "group:wood", "group:wood"}, - } -}) - minetest.register_craft({ output = "moreblocks:wood_tile 9", recipe = { @@ -53,6 +44,17 @@ minetest.register_craft({ } }) +-- This must be registered after `moreblocks:wood_tile` to avoid recipe conflicts, +-- since `moreblocks:wood_tile` is part of `group:wood` +minetest.register_craft({ + output = "moreblocks:wood_tile_center 9", + recipe = { + {"group:wood", "group:wood", "group:wood"}, + {"group:wood", "moreblocks:wood_tile", "group:wood"}, + {"group:wood", "group:wood", "group:wood"}, + } +}) + minetest.register_craft({ type = "shapeless", output = "moreblocks:wood_tile",