Try a fix for name_parts crash.

This commit is contained in:
Calinou 2014-08-10 17:26:11 +02:00
parent 3b1392ce04
commit c733848327

View File

@ -122,7 +122,7 @@ function circular_saw:update_inventory(pos, amount)
end
local node_name = stack:get_name()
local name_parts = circular_saw.known_nodes[node_name]
local name_parts = circular_saw.known_nodes[node_name] or ""
local modname = name_parts[1]
local material = name_parts[2]