diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-01-12 00:50:17 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-01-12 00:50:17 -0700 |
commit | e008aed60c3e4e5875c94617a6cc6d588f283582 (patch) | |
tree | e7651fc4027e356b48dafe2fbc88c014f2d1cd32 /class_layout.lua | |
parent | 9f139288845b7aa27bc4a251d6d5ddde713d27b7 (diff) |
Update axle to new layout class, drop dug items in the right placeorigin/layout-refactor
Diffstat (limited to 'class_layout.lua')
-rw-r--r-- | class_layout.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 |