mirror of
https://github.com/wiremod/wire.git
synced 2025-03-04 03:03:04 -05:00
Verify player is in vehicle before adding player to vehicle (#3173)
* Verify player is in vehicle before adding player to vehicle * Fix bug persisting when using a simulated use action
This commit is contained in:
parent
1a635b307d
commit
2c98046255
@ -638,7 +638,7 @@ end
|
||||
function Wire_Pod_EnterVehicle(ply, vehicle)
|
||||
for _, v in ipairs(pods) do
|
||||
local pod = v:GetPod()
|
||||
if pod and pod == vehicle then
|
||||
if pod == vehicle and ply:GetVehicle() == pod then
|
||||
v:PlayerEntered(ply)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user