From 1e51e73e5d985ad437dd21590b67d4ac60a39f6c Mon Sep 17 00:00:00 2001 From: Austin Shenk Date: Tue, 2 Jul 2013 10:48:14 -0400 Subject: [PATCH] Fix conditional statement for item drop --- externalmodify.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externalmodify.lua b/externalmodify.lua index b9a3736..176557e 100644 --- a/externalmodify.lua +++ b/externalmodify.lua @@ -1,7 +1,7 @@ --Handle node drops to be compatible with the Technic node drops local itemDrop = minetest.get_modpath("item_drop") -if(itemDrop ~= "" and itemDrop ~= nil) then +if itemDrop then local code = "local tool = digger:get_wielded_item():get_name()\n".. "if(tool:find('superheat') ~= nil)then\n".. "output = minetest.get_craft_result({method='cooking', items={name}})\n"..