Skip to content

Commit

Permalink
Anti-Grief Defer Array Construction
Browse files Browse the repository at this point in the history
- Defers creation of the transfer count array until after a scene is loaded
  • Loading branch information
data-bomb committed Feb 1, 2025
1 parent 90c0ac6 commit 6cb3f7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Si_AntiGrief/Si_AntiGrief.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You should have received a copy of the GNU General Public License
using System.Linq;
using UnityEngine;

[assembly: MelonInfo(typeof(AntiGrief), "Anti-Grief", "1.4.4", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(AntiGrief), "Anti-Grief", "1.4.5", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]
[assembly: MelonOptionalDependencies("Admin Mod")]

Expand All @@ -60,8 +60,6 @@ public override void OnInitializeMelon()
_NegativeKills_Penalty_Ban ??= _modCategory.CreateEntry<bool>("Grief_NegativeKills_Penalty_Ban", true);
_StructureAntiGrief_IgnoreNodes ??= _modCategory.CreateEntry<bool>("Grief_IgnoreFriendlyNodesDestroyed", true);
_BlockShrimpControllers ??= _modCategory.CreateEntry<bool>("Grief_BlockShrimpTakeOver", false);

InitializeTransferCountArray();
}

public override void OnSceneWasLoaded(int buildIndex, string sceneName)
Expand Down

0 comments on commit 6cb3f7f

Please sign in to comment.