From dfbcce0a9af774fd08d6480c4783b3f1af476cf8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 3 Aug 2016 02:12:37 +0200 Subject: Fix drop-related crash --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 8b69b67..591b828 100644 --- a/init.lua +++ b/init.lua @@ -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: " -- cgit v1.2.3