Skip to content

Commit e663b70

Browse files
committed
add check for complete YARM interface
1 parent d6de9a5 commit e663b70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gui.lua

+3-3
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)