summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-05 09:48:35 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-05 09:48:35 +0100
commit51ccb8c1b6d45f44627300f0758aa3141405cf69 (patch)
treeb4f5fa10bfce91cd4ebaab2cacb4a90d5954049f
parent7f156db0df8a77793635a32db5aee474a5c26eea (diff)
Fix crash caused by typo in method name
Fixes #51
-rw-r--r--triggers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/triggers.lua b/triggers.lua
index 6f39cf3..1a7b311 100644
--- a/triggers.lua
+++ b/triggers.lua
@@ -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