diff options
author | isaiah658 <isaiah658@outlook.com> | 2018-10-11 21:11:16 -0500 |
---|---|---|
committer | LNJ <git@lnj.li> | 2018-10-14 09:37:46 +0200 |
commit | c0707bcbad03050c026e05868c943928efccf806 (patch) | |
tree | 8910b2e6eb7f4c4c3c054115fe20edfd108f1698 /init.lua | |
parent | 9499d241aafd8da090300e36e086ca3974589d08 (diff) |
MineClone 2 bug fix for trimorigin/masterorigin/HEAD
After looking at the code again I realized the trim block will also have the same issue as the drawers did.
Diffstat (limited to 'init.lua')
-rwxr-xr-x | init.lua | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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", |