Fix crash caused by typo in method name

Fixes #51
This commit is contained in:
rubenwardy 2018-04-05 09:48:35 +01:00
parent 7f156db0df
commit 51ccb8c1b6

View File

@ -107,7 +107,7 @@ awards.register_trigger("craft", {
end
})
minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv)
if not player or itemstack:empty() then
if not player or itemstack:is_empty() then
return
end
@ -127,7 +127,7 @@ awards.register_trigger("eat", {
end
})
minetest.register_on_item_eat(function(_, _, itemstack, player, _)
if not player or itemstack:empty() then
if not player or itemstack:is_empty() then
return
end