Add potential fix for circular saw crash.

This commit is contained in:
Calinou 2014-08-20 19:20:19 +02:00
parent c733848327
commit e308ecf472

View File

@ -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)