mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-02-17 18:39:07 +00:00
GlobalShare fix
This commit is contained in:
@@ -51,6 +51,9 @@ namespace WeaponPaints
|
||||
NativeAPI.IssueServerCommand("mp_t_default_melee \"\"");
|
||||
NativeAPI.IssueServerCommand("mp_ct_default_melee \"\"");
|
||||
NativeAPI.IssueServerCommand("mp_equipment_reset_rounds 0");
|
||||
|
||||
if (Config.GlobalShare)
|
||||
GlobalShareConnect();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -224,11 +224,18 @@ namespace WeaponPaints
|
||||
|
||||
Server.NextFrame(() =>
|
||||
{
|
||||
newWeapon.Clip1 = clip1;
|
||||
newWeapon.ReserveAmmo[0] = reservedAmmo;
|
||||
if (newWeapon == null) return;
|
||||
try
|
||||
{
|
||||
newWeapon.Clip1 = clip1;
|
||||
newWeapon.ReserveAmmo[0] = reservedAmmo;
|
||||
}
|
||||
catch (Exception)
|
||||
{ }
|
||||
});
|
||||
}
|
||||
} catch(Exception ex)
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine("[WeaponPaints] Refreshing weapons exception");
|
||||
Console.WriteLine(ex.Message);
|
||||
|
||||
@@ -11,7 +11,7 @@ public partial class WeaponPaints : BasePlugin, IPluginConfig<WeaponPaintsConfig
|
||||
public override string ModuleName => "WeaponPaints";
|
||||
public override string ModuleDescription => "Skin and knife selector, standalone and web-based";
|
||||
public override string ModuleAuthor => "Nereziel & daffyy";
|
||||
public override string ModuleVersion => "1.3a";
|
||||
public override string ModuleVersion => "1.3b";
|
||||
public WeaponPaintsConfig Config { get; set; } = new();
|
||||
internal static WeaponPaintsConfig _config = new WeaponPaintsConfig();
|
||||
|
||||
@@ -101,10 +101,6 @@ public partial class WeaponPaints : BasePlugin, IPluginConfig<WeaponPaintsConfig
|
||||
Utility.TestDatabaseConnection();
|
||||
}
|
||||
|
||||
if (Config.GlobalShare)
|
||||
GlobalShareConnect();
|
||||
|
||||
|
||||
weaponSync = new WeaponSynchronization(DatabaseConnectionString, Config, GlobalShareApi, GlobalShareServerId);
|
||||
|
||||
if (hotReload)
|
||||
|
||||
Reference in New Issue
Block a user