Skip to content

Commit

Permalink
Update Session.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidArgument3 committed Oct 31, 2024
1 parent 4a8bcf6 commit 71246b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions TSTSSESHangar/Data/Scripts/FactionHangar/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2350,6 +2350,11 @@ protected override void UnloadData() {
}
}

// Add this unhook
if (!isDedicated) {
MyVisualScriptLogicProvider.ToolEquipped -= ToolEquipped;
}

if (MyAPIGateway.Utilities != null) {
MyAPIGateway.Utilities.MessageEntered -= ChatHandler;
}
Expand All @@ -2358,10 +2363,6 @@ protected override void UnloadData() {
MyAPIGateway.Multiplayer.UnregisterMessageHandler(NetworkHandle, Comms.MessageHandler);
}

//if (!isDedicated) {
// Sandbox.ModAPI.MyAPIGateway.Utilities.ShowMessage("FactionHangar", "Mod Unloaded");
//}

Instance = null;
}
catch (Exception ex) {
Expand Down

0 comments on commit 71246b1

Please sign in to comment.