Fix conditional statement for item drop

This commit is contained in:
Austin Shenk 2013-07-02 10:48:14 -04:00
parent 545bed2e09
commit 1e51e73e5d

View File

@ -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"..