From fc75d2290b56d170b14c4c0861d0970b7fa6838b Mon Sep 17 00:00:00 2001 From: SFENCE Date: Mon, 28 Feb 2022 20:50:28 +0100 Subject: [PATCH] Clear original recipe for palstic base from hades_materials. Prevent dual plastic cook recipe. --- crafts.lua | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/crafts.lua b/crafts.lua index b945952..21d7bec 100644 --- a/crafts.lua +++ b/crafts.lua @@ -150,6 +150,13 @@ minetest.register_craft( { }, }) +if have_hades_materials then + minetest.clear_craft({ + type = "shapeless", + recipe = {"group:leaves", "group:leaves", "group:leaves", "group:leaves", "group:leaves", "group:leaves"} + }) +end + minetest.register_craft({ type = "shapeless", output = "basic_materials:oil_extract 2", @@ -157,11 +164,13 @@ minetest.register_craft({ }) --cooking recipes -minetest.register_craft({ - type = "cooking", - output = "basic_materials:plastic_sheet", - recipe = "basic_materials:paraffin", -}) +if not have_hades_materials then + minetest.register_craft({ + type = "cooking", + output = "basic_materials:plastic_sheet", + recipe = "basic_materials:paraffin", + }) +end minetest.register_craft({ type = "cooking",