mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-11-29 18:53:44 +01:00
parent
7f156db0df
commit
51ccb8c1b6
@ -107,7 +107,7 @@ awards.register_trigger("craft", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv)
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ awards.register_trigger("eat", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
minetest.register_on_item_eat(function(_, _, itemstack, player, _)
|
minetest.register_on_item_eat(function(_, _, itemstack, player, _)
|
||||||
if not player or itemstack:empty() then
|
if not player or itemstack:is_empty() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user