@@ -119,8 +119,8 @@ modmanager.gui.ListEntry = ig.FocusGui.extend({
119119 this . addChildGui ( this . nameIconPrefixesText )
120120
121121 if ( ! isGrid ) {
122- if ( serverMod ?. tags ) {
123- const tags = serverMod . tags
122+ const tags = serverMod ?. tags ?? localMod ?. tags
123+ if ( tags ) {
124124 const str = tags . map ( a => `\\c[0]${ a } \\c[0]` ) . join ( ', ' )
125125 this . tags = new sc . TextGui ( str , {
126126 font : sc . fontsystem . smallFont ,
@@ -140,8 +140,8 @@ modmanager.gui.ListEntry = ig.FocusGui.extend({
140140 this . description . setPos ( 4 + this . iconOffset , 14 )
141141 this . addChildGui ( this . description )
142142
143- if ( serverMod ?. authors ) {
144- const authors = serverMod . authors
143+ const authors = serverMod ?. authors ?? localMod ?. authors
144+ if ( authors && authors . length > 0 ) {
145145 const str = `by ${ authors . map ( a => `\\c[3]${ a } \\c[0]` ) . join ( ', ' ) } `
146146 this . authors = new sc . TextGui ( str , { font : sc . fontsystem . smallFont , linePadding : - 1 } )
147147 this . addChildGui ( this . authors )
@@ -167,7 +167,8 @@ modmanager.gui.ListEntry = ig.FocusGui.extend({
167167
168168 if ( serverMod ?. stars !== undefined ) {
169169 this . starCount = new sc . TextGui ( `${ serverMod . stars } \\i[save-star]` )
170- this . starCount . setPos ( 496 - this . starCount . hook . size . x , 0 )
170+ this . starCount . setAlign ( ig . GUI_ALIGN_X . RIGHT , ig . GUI_ALIGN_Y . TOP )
171+ this . starCount . setPos ( 53 , 0 )
171172 this . addChildGui ( this . starCount )
172173 }
173174 }
@@ -238,7 +239,9 @@ modmanager.gui.ListEntry = ig.FocusGui.extend({
238239 const spaceLeft =
239240 this . hook . size . x -
240241 this . authors . hook . pos . x -
241- ( this . hook . size . x - ( this . starCount ?. hook . pos . x ?? this . versionText . hook . pos . x ) )
242+ ( this . starCount
243+ ? this . starCount . hook . pos . x + this . starCount . hook . size . x
244+ : this . versionText . hook . pos . x + this . versionText . hook . size . x )
242245 const freeSpace = spaceLeft - this . authors . hook . size . x
243246 if ( freeSpace <= 0 ) {
244247 this . authors . setFont ( sc . fontsystem . tinyFont )
0 commit comments