Skip to content

Commit

Permalink
hotfix wrong function call
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 committed Nov 9, 2024
1 parent eb2c67e commit f21626e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/starfall/editor/sfframe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ end
function PANEL:CheckPlayersChanged()
local players = {}
for k, v in pairs(player.GetAll()) do
if not table.Empty(SF.playerInstances[v]) or SF.BlockedUsers:isBlocked(v:SteamID()) then
if not table.IsEmpty(SF.playerInstances[v]) or SF.BlockedUsers:isBlocked(v:SteamID()) then
players[v] = true
end
end
Expand Down
2 changes: 1 addition & 1 deletion lua/starfall/instance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ function SF.Instance:deinitialize()
self:RunHook("deinitialize")
SF.allInstances[self] = nil
SF.playerInstances[self.player][self] = nil
if table.Empty(SF.playerInstances[self.player]) then SF.playerInstances[self.player] = nil end
if table.IsEmpty(SF.playerInstances[self.player]) then SF.playerInstances[self.player] = nil end

self.error = true
local noop = function() return {} end
Expand Down

0 comments on commit f21626e

Please sign in to comment.