From e008aed60c3e4e5875c94617a6cc6d588f283582 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Thu, 12 Jan 2017 00:50:17 -0700 Subject: Update axle to new layout class, drop dug items in the right place --- class_layout.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'class_layout.lua') diff --git a/class_layout.lua b/class_layout.lua index b7311c5..85beba3 100644 --- a/class_layout.lua +++ b/class_layout.lua @@ -15,7 +15,9 @@ local get_node_image = function(pos, node) local build_item = node_image.meta.inventory.main[1] if build_item ~= "" then local build_item_def = minetest.registered_nodes[ItemStack(build_item):get_name()] - node_image.build_item_paramtype2 = build_item_def.paramtype2 + if build_item_def ~= nil then + node_image.build_item_paramtype2 = build_item_def.paramtype2 + end end end return node_image -- cgit v1.2.3