This commit is contained in:
in0finite 2019-07-06 23:50:39 +02:00
parent 8c0d258176
commit 22e2c64682
2 changed files with 3 additions and 3 deletions

View file

@ -245,12 +245,12 @@ namespace SanAndreasUnity.Behaviours
return weapon; return weapon;
} }
internal static void OnWeaponCreatedByServer(int modelId) internal static void OnWeaponCreatedByServer(NetworkedWeapon networkedWeapon)
{ {
WeaponDef def; WeaponDef def;
WeaponData weaponData; WeaponData weaponData;
GameObject go = CreatePart1(modelId, out def, out weaponData); GameObject go = CreatePart1(networkedWeapon.ModelId, out def, out weaponData);
if (null == go) if (null == go)
return; return;

View file

@ -28,7 +28,7 @@ namespace SanAndreasUnity.Behaviours.Weapons
return; return;
// create weapon // create weapon
F.RunExceptionSafe( () => Weapon.OnWeaponCreatedByServer(m_net_modelId) ); F.RunExceptionSafe( () => Weapon.OnWeaponCreatedByServer(this) );
} }
void Start() void Start()