mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Fixed a bunch of vehicle bugs - will probably change the way vehicles are being handled soon to account for other vehicle templates
This commit is contained in:
@@ -763,6 +763,15 @@ public class SimulationService implements INetworkDispatch {
|
||||
core.combatService.handleEndDuel(object, opponent, true);
|
||||
}
|
||||
}
|
||||
System.out.print(object.getAttachment("activeVehicleID"));
|
||||
|
||||
if(object.getAttachment("activeVehicleID") != null)
|
||||
{
|
||||
if(object.isMounted()) object.getMountedVehicle().unmount(object);
|
||||
long vehicleID = ((java.math.BigInteger) object.getAttachment("activeVehicleID")).longValue();
|
||||
core.objectService.destroyObject(vehicleID);
|
||||
object.setAttachment("activeVehicleID", null);
|
||||
}
|
||||
|
||||
/*
|
||||
object.createTransaction(core.getCreatureODB().getEnvironment());
|
||||
|
||||
Reference in New Issue
Block a user