Fix GetSitting adding the seat the player is in

This commit is contained in:
Xerasin 2021-01-22 10:45:12 -08:00
parent 3b6288ec44
commit 7bfa78aa49

View File

@ -113,7 +113,7 @@ function PMETA:GetSitters()
local function processSeat(seat, depth)
depth = (depth or 0) + 1
if IsValid(seat:GetDriver()) then
if IsValid(seat:GetDriver()) and seat:GetDriver() ~= self then
table.insert(seats, seat)
end
for _, v in pairs(seat:GetChildren()) do