From 6c9b96dc00dace0da055526ba73fe97e9f3d5652 Mon Sep 17 00:00:00 2001 From: Vanic Date: Sat, 14 Feb 2026 19:26:25 +0300 Subject: [PATCH] Fix annotation for `core.node_dig`: add return `boolean` --- core_namespace.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core_namespace.lua b/core_namespace.lua index 7d56760..0f9279f 100644 --- a/core_namespace.lua +++ b/core_namespace.lua @@ -1692,9 +1692,10 @@ function core.item_eat(hp_change, replace_with_item) end function core.node_punch(pos, node, puncher, pointed_thing) end --- * Checks if node can be dug, puts item into inventory, removes node --- * Calls functions registered by `core.registered_on_dignodes()` ---- +--- * Returns `true` if the node was dig. --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5391-L5393) --- @param pos MapPosition +--- @return boolean function core.node_dig(pos, node, digger) end -- Sounds: