From 534d8afecbe1198f228089aa1d72cd462f8459b2 Mon Sep 17 00:00:00 2001 From: alek13 Date: Wed, 11 Dec 2024 02:31:08 +0300 Subject: [PATCH] Effects System: apply effects with reason & theirs physics with reason. Closes lord-server/lord#1830 --- definitions/ItemDefinition.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definitions/ItemDefinition.lua b/definitions/ItemDefinition.lua index fb2c2f7..0b9ec42 100644 --- a/definitions/ItemDefinition.lua +++ b/definitions/ItemDefinition.lua @@ -183,7 +183,7 @@ local ItemDefinition = { --- Otherwise, the function is free to do what it wants. --- The user may be any ObjectRef or nil. --- The default functions handle regular use cases. - --- @type fun(itemstack:ItemStack, user:Player|ObjectRef|nil, pointed_thing:pointed_thing) + --- @type fun(itemstack:ItemStack, user:Player|ObjectRef|nil, pointed_thing:pointed_thing):ItemStack|nil on_use = nil, --- default: nil