From 960d7fad3d55427e27bebafe47055d5472b878c6 Mon Sep 17 00:00:00 2001 From: ssdaniel24 <107036969+ssdaniel24@users.noreply.github.com> Date: Wed, 5 Jun 2024 20:02:24 +0300 Subject: [PATCH] Unified straw: Fixed multiple straws: using farming's (lord-server/lord#1426). Closes lord-server/lord#1414. Closes lord-server/lord#1203. * Fixed multiple straws: using farming's one * Type hint enchancement :pencil2: --- definitions/AuthenticationHandlerDefinition.lua | 2 +- minetest_types.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/definitions/AuthenticationHandlerDefinition.lua b/definitions/AuthenticationHandlerDefinition.lua index 5ccfd67..83759b9 100644 --- a/definitions/AuthenticationHandlerDefinition.lua +++ b/definitions/AuthenticationHandlerDefinition.lua @@ -10,7 +10,7 @@ local AuthenticationHandlerDefinition = { --- doesn't exist). --- Returns following structure: --- `{password=, privileges=, last_login=}` - ---@type fun(name:string):AuthenticationHandlerGetAuth + ---@type fun(name:string):AuthenticationHandlerGetAuth|nil get_auth = function(name) end, --- Create new auth data for player `name`. diff --git a/minetest_types.lua b/minetest_types.lua index 59341f0..44b84c9 100644 --- a/minetest_types.lua +++ b/minetest_types.lua @@ -203,7 +203,7 @@ function minetest.get_hit_params(groups, tool_capabilities , time_from_last_punc --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L3329-L3338) --- --- @param text_domain string ---- @return fun(str: string, ...) +--- @return fun(str: string, ...):string function minetest.get_translator(text_domain) end --- translates the string `str` with --- the given `textdomain` for disambiguation. The textdomain must match the