mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-04-28 23:35:23 +00:00
Fix vehicle ownership bug (#273)
This commit is contained in:
parent
1fb35bacd1
commit
9e42171ca5
1 changed files with 1 additions and 1 deletions
|
|
@ -2067,12 +2067,12 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
||||||
|
|
||||||
case VehicleResponse.Ownership(vehicle_guid) =>
|
case VehicleResponse.Ownership(vehicle_guid) =>
|
||||||
if(tplayer_guid == guid) { // Only the player that owns this vehicle needs the ownership packet
|
if(tplayer_guid == guid) { // Only the player that owns this vehicle needs the ownership packet
|
||||||
|
player.VehicleOwned = Some(vehicle_guid)
|
||||||
sendResponse(PlanetsideAttributeMessage(tplayer_guid, 21, vehicle_guid))
|
sendResponse(PlanetsideAttributeMessage(tplayer_guid, 21, vehicle_guid))
|
||||||
}
|
}
|
||||||
|
|
||||||
case VehicleResponse.PlanetsideAttribute(vehicle_guid, attribute_type, attribute_value) =>
|
case VehicleResponse.PlanetsideAttribute(vehicle_guid, attribute_type, attribute_value) =>
|
||||||
if(tplayer_guid != guid) {
|
if(tplayer_guid != guid) {
|
||||||
player.VehicleOwned = Some(vehicle_guid)
|
|
||||||
sendResponse(PlanetsideAttributeMessage(vehicle_guid, attribute_type, attribute_value))
|
sendResponse(PlanetsideAttributeMessage(vehicle_guid, attribute_type, attribute_value))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue