From e308ecf472538fcff396485a5ab726fe610a9f88 Mon Sep 17 00:00:00 2001 From: Calinou Date: Wed, 20 Aug 2014 19:20:19 +0200 Subject: Add potential fix for circular saw crash. --- circular_saw.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circular_saw.lua b/circular_saw.lua index b220359..217eb92 100644 --- a/circular_saw.lua +++ b/circular_saw.lua @@ -123,8 +123,8 @@ function circular_saw:update_inventory(pos, amount) end local node_name = stack:get_name() local name_parts = circular_saw.known_nodes[node_name] or "" - local modname = name_parts[1] - local material = name_parts[2] + local modname = name_parts[1] or "" + local material = name_parts[2] or "" inv:set_list("input", { -- Display as many full blocks as possible: node_name.. " " .. math.floor(amount / 8) -- cgit v1.2.3