File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ function gui_open_frame(player)
146146 storage_frame .destroy ()
147147 end
148148 global [" config-tmp" ][player .name ] = nil
149- if remote .interfaces .YARM and global .settings [player .name ].YARM_old_expando then
149+ if remote .interfaces .YARM and remote . interfaces . YARM . show_expando and global .settings [player .name ].YARM_old_expando then
150150 remote .call (" YARM" , " show_expando" , player .index )
151151 end
152152 return
@@ -171,7 +171,7 @@ function gui_open_frame(player)
171171 }
172172 end
173173 end
174- if remote .interfaces .YARM then
174+ if remote .interfaces .YARM and remote . interfaces . YARM . hide_expando then
175175 global .settings [player .name ].YARM_old_expando = remote .call (" YARM" , " hide_expando" , player .index )
176176 end
177177 -- Now we can build the GUI.
@@ -363,7 +363,7 @@ function gui_save_changes(player, name)
363363 if storage_frame then
364364 storage_frame .destroy ()
365365 end
366- if remote .interfaces .YARM and global .settings [player .name ].YARM_old_expando then
366+ if remote .interfaces .YARM and remote . interfaces . YARM . show_expando and global .settings [player .name ].YARM_old_expando then
367367 remote .call (" YARM" , " show_expando" , player .index )
368368 end
369369 end
You can’t perform that action at this time.
0 commit comments