diff --git a/mods/CORE/Formspec/src/Formspec.lua b/mods/CORE/Formspec/src/Formspec.lua index 9667d86..2d351cf 100644 --- a/mods/CORE/Formspec/src/Formspec.lua +++ b/mods/CORE/Formspec/src/Formspec.lua @@ -296,7 +296,7 @@ end ---@param w number ---@param h number ---@param textureName string ----@param middle boolean? Makes the image render in 9-sliced mode and defines the middle rect. +---@param middle string? Makes the image render in 9-sliced mode and defines the middle rect. ---@return Formspec function Formspec:image(x, y, w, h, textureName, middle) local element = ('image[%s,%s;%s,%s;%s;%s]'):format( @@ -441,7 +441,7 @@ end --- * All numbers in middle are integers. ---@return Formspec function Formspec:background9(x, y, w, h, textureName, autoClip, middle) - local element = ('background9[%s,%s;%s,%s;%s;%s]'):format( + local element = ('background9[%s,%s;%s,%s;%s;%s;%s]'):format( x, y, w, h, textureName, autoClip, middle) self:addElement(element)