mirror of
https://github.com/Xerasin/Sit-Anywhere.git
synced 2025-03-04 03:13:07 -05:00
Fix GetSitting adding the seat the player is in
This commit is contained in:
parent
3b6288ec44
commit
7bfa78aa49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user