mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
...
This commit is contained in:
parent
8c0d258176
commit
22e2c64682
2 changed files with 3 additions and 3 deletions
|
@ -245,12 +245,12 @@ namespace SanAndreasUnity.Behaviours
|
|||
return weapon;
|
||||
}
|
||||
|
||||
internal static void OnWeaponCreatedByServer(int modelId)
|
||||
internal static void OnWeaponCreatedByServer(NetworkedWeapon networkedWeapon)
|
||||
{
|
||||
|
||||
WeaponDef def;
|
||||
WeaponData weaponData;
|
||||
GameObject go = CreatePart1(modelId, out def, out weaponData);
|
||||
GameObject go = CreatePart1(networkedWeapon.ModelId, out def, out weaponData);
|
||||
if (null == go)
|
||||
return;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace SanAndreasUnity.Behaviours.Weapons
|
|||
return;
|
||||
|
||||
// create weapon
|
||||
F.RunExceptionSafe( () => Weapon.OnWeaponCreatedByServer(m_net_modelId) );
|
||||
F.RunExceptionSafe( () => Weapon.OnWeaponCreatedByServer(this) );
|
||||
}
|
||||
|
||||
void Start()
|
||||
|
|
Loading…
Reference in a new issue