From 58455319a35c10bc842d9458c505e1d573ac3bf8 Mon Sep 17 00:00:00 2001 From: alek13 Date: Fri, 26 Sep 2025 21:25:47 +0300 Subject: [PATCH] `ide-helper`: small `ItemDefinition`. LG-1994 --- definitions/ItemDefinition.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definitions/ItemDefinition.lua b/definitions/ItemDefinition.lua index 8b836aa..118248b 100644 --- a/definitions/ItemDefinition.lua +++ b/definitions/ItemDefinition.lua @@ -193,7 +193,7 @@ local ItemDefinition = { --- Shall drop item and return the leftover itemstack. --- The dropper may be any ObjectRef or nil. --- default: minetest.item_drop - --- @type fun(itemstack:ItemStack, dropper:Player|ObjectRef|nil, pos:Position)? + --- @type (fun(itemstack:ItemStack|ItemStackString, dropper:Player|ObjectRef|nil, pos:Position):ItemStack)? on_drop = minetest.item_drop, --- Called when a dropped item is punched by a player.