Minor changes

This commit is contained in:
Van
2025-12-28 20:10:08 +03:00
parent 7b951b64ac
commit 27004ebf45
3 changed files with 5 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ local CraftSystem = {
---@field output string ---@field output string
---@field recipe CraftSystem.Craft.Recipe ---@field recipe CraftSystem.Craft.Recipe
---@field return table? TODO: доделать тут тип ---@field return table? TODO: доделать тут тип
---@field craftFunc (fun(self, ...):boolean)? ---@field craftFunc (fun(self, ...):boolean)?
---@class CraftSystem.ShapelessCraft : CraftSystem.BaseCraft ---@class CraftSystem.ShapelessCraft : CraftSystem.BaseCraft
---@field craftFunc shapelessCraftFunc? ---@field craftFunc shapelessCraftFunc?

View File

@@ -1 +1,2 @@
name = smc__ui__formspec name = smc__ui__formspec
depends = smc__api__api_loader

View File

@@ -32,7 +32,7 @@ function Formspec:new(def)
return instance return instance
end end
local version = ('formspec_version[%s]'):format( def.version or 10) -- Formspec version 10 (5.13.0) local version = ('formspec_version[%s]'):format( def.version or 10) -- formspec version 10 (5.13.0)
local size = ('size[%s,%s,%s]'):format(def.size.x, def.size.y, def.size.fixed_size or true) local size = ('size[%s,%s,%s]'):format(def.size.x, def.size.y, def.size.fixed_size or true)
@@ -461,4 +461,5 @@ function Formspec:set_focus()
end end
return Formspec return Formspec