mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 23:44:40 +00:00
Dont unload vehicle inventory when closing trunk after rearming
This commit is contained in:
parent
7cc1dbbc63
commit
7ed2cc7af4
1 changed files with 5 additions and 1 deletions
|
|
@ -4910,7 +4910,11 @@ class SessionActor(middlewareActor: typed.ActorRef[MiddlewareActor.Command], con
|
||||||
TryDisposeOfLootedCorpse(obj)
|
TryDisposeOfLootedCorpse(obj)
|
||||||
|
|
||||||
case Some(obj: Container) =>
|
case Some(obj: Container) =>
|
||||||
UnaccessContainer(obj)
|
// Make sure we don't unload the contents of the vehicle the player is seated in
|
||||||
|
// An example scenario of this would be closing the trunk contents when rearming at a landing pad
|
||||||
|
if (player.VehicleSeated.isEmpty || player.VehicleSeated.get != obj.GUID) {
|
||||||
|
UnaccessContainer(obj)
|
||||||
|
}
|
||||||
|
|
||||||
case _ => ;
|
case _ => ;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue