From c0707bcbad03050c026e05868c943928efccf806 Mon Sep 17 00:00:00 2001 From: isaiah658 Date: Thu, 11 Oct 2018 21:11:16 -0500 Subject: [PATCH] MineClone 2 bug fix for trim After looking at the code again I realized the trim block will also have the same issue as the drawers did. --- init.lua | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 9d77744..1ee3684 100755 --- a/init.lua +++ b/init.lua @@ -330,11 +330,21 @@ end -- Register drawer trim -- -core.register_node("drawers:trim", { - description = S("Wooden Trim"), - tiles = {"drawers_trim.png"}, - groups = {drawer = 1, choppy = 3, oddly_breakable_by_hand = 2} -}) +if core.get_modpath("mcl_core") and mcl_core then + core.register_node("drawers:trim", { + description = S("Wooden Trim"), + tiles = {"drawers_trim.png"}, + groups = {handy = 1, axey = 1, flammable = 3, wood = 1, building_block = 1, material_wood = 1} + _mcl_blast_resistance = 15, + _mcl_hardness = 2, + }) +else + core.register_node("drawers:trim", { + description = S("Wooden Trim"), + tiles = {"drawers_trim.png"}, + groups = {drawer = 1, choppy = 3, oddly_breakable_by_hand = 2} + }) +end core.register_craft({ output = "drawers:trim 6",