diff options
author | Calinou <calinou@opmbx.org> | 2014-08-10 17:26:11 +0200 |
---|---|---|
committer | Calinou <calinou@opmbx.org> | 2014-08-10 17:26:11 +0200 |
commit | c7338483277f8e73c5bf106821bd454e39e798f3 (patch) | |
tree | 750402bd11c65acc1ff69ea870932318a0fe56d5 | |
parent | 3b1392ce04beea79b6e202598b71dbaf22895867 (diff) | |
download | moreblocks-c7338483277f8e73c5bf106821bd454e39e798f3.tar.gz moreblocks-c7338483277f8e73c5bf106821bd454e39e798f3.tar.bz2 moreblocks-c7338483277f8e73c5bf106821bd454e39e798f3.zip |
Try a fix for name_parts crash.
-rw-r--r-- | circular_saw.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/circular_saw.lua b/circular_saw.lua index c8dc2ad..b220359 100644 --- a/circular_saw.lua +++ b/circular_saw.lua @@ -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] |