Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	CustomItems/Configs/Items.cs
#	CustomItems/Properties/AssemblyInfo.cs
  • Loading branch information
joker-119 committed Apr 13, 2022
2 parents f0ce730 + 47cc5db commit 309201a
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions CustomItems/CustomItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,6 @@ public override void OnEnabled()
harmonyInstance.PatchAll();

Config.LoadItems();
/*
Config.ItemConfigs.Scp127s.Register();
Config.ItemConfigs.Scp714s.Register();
Config.ItemConfigs.Scp1499s.Register();
Config.ItemConfigs.Scp2818s.Register();
Config.ItemConfigs.AutoGuns.Register();
Config.ItemConfigs.C4Charges.Register();
Config.ItemConfigs.DeflectorSheilds.Register();
Config.ItemConfigs.EmpGrenades.Register();
Config.ItemConfigs.GrenadeLaunchers.Register();
Config.ItemConfigs.ImplosionGrenades.Register();
Config.ItemConfigs.LethalInjections.Register();
Config.ItemConfigs.LuckyCoins.Register();
Config.ItemConfigs.MediGuns.Register();
Config.ItemConfigs.SniperRifle.Register();
Config.ItemConfigs.TranquilizerGun.Register();
Config.ItemConfigs.AntiMemeticPills.Register();
*/

Log.Debug("Registering items..", Config.IsDebugEnabled);
CustomItem.RegisterItems(overrideClass: Config.ItemConfigs);
Expand All @@ -75,22 +57,7 @@ public override void OnEnabled()
/// <inheritdoc/>
public override void OnDisabled()
{
Config.ItemConfigs.Scp127s.Unregister();
Config.ItemConfigs.Scp714s.Unregister();
Config.ItemConfigs.Scp1499s.Unregister();
Config.ItemConfigs.Scp2818s.Unregister();
Config.ItemConfigs.AutoGuns.Unregister();
Config.ItemConfigs.C4Charges.Unregister();
Config.ItemConfigs.DeflectorSheilds.Unregister();
Config.ItemConfigs.EmpGrenades.Unregister();
Config.ItemConfigs.GrenadeLaunchers.Unregister();
Config.ItemConfigs.ImplosionGrenades.Unregister();
Config.ItemConfigs.LethalInjections.Unregister();
Config.ItemConfigs.LuckyCoins.Unregister();
Config.ItemConfigs.MediGuns.Unregister();
Config.ItemConfigs.SniperRifle.Unregister();
Config.ItemConfigs.TranquilizerGun.Unregister();
Config.ItemConfigs.AntiMemeticPills.Unregister();
CustomItem.UnregisterItems();

Server.ReloadedConfigs -= serverHandler.OnReloadingConfigs;

Expand Down

0 comments on commit 309201a

Please sign in to comment.