Skip to content

Commit

Permalink
Fix ss.readEntity bug (#1948)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 authored Dec 30, 2024
1 parent 0b9f99b commit 206fe4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/starfall/libs_sh/bit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,8 @@ local function readEntity(self, instance, callback)
local index = self:readUInt16()
local creationindex = self:readUInt32()
if callback ~= nil and CLIENT then
checkluatype(callback, creationindex, TYPE_FUNCTION)
SF.WaitForEntity(index, function(ent)
checkluatype(callback, TYPE_FUNCTION)
SF.WaitForEntity(index, creationindex, function(ent)
if ent ~= nil then ent = instance.WrapObject(ent) end
instance:runFunction(callback, ent)
end)
Expand Down

0 comments on commit 206fe4f

Please sign in to comment.