diff options
author | Wuzzy <almikes@aol.com> | 2016-08-03 02:12:37 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-03 02:12:37 +0200 |
commit | dfbcce0a9af774fd08d6480c4783b3f1af476cf8 (patch) | |
tree | 092c32d02727c606964e75dbe7c8df1620868c86 /init.lua | |
parent | 9407bb84dc3839a6a71527a056b5d603a050eab9 (diff) |
Fix drop-related crash
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -348,7 +348,7 @@ doc.new_category("nodes", { end formstring = formstring .. "This block will drop the following when mined: "..finalstring end - elseif type(data.def.drop) == "table" then + elseif type(data.def.drop) == "table" and data.def.drop.items ~= nil then local max = data.def.drop.max_items if max == nil then formstring = formstring .. "This block will drop the following items when mined: " |