Skip to content

Commit

Permalink
Update bobzone_activemeasures.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidArgument3 committed Jul 2, 2024
1 parent 26c6d07 commit 15f344b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Layman's SafeZone/Data/Scripts/bob/bobzone_activemeasures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public override void UpdateBeforeSimulation()
playerInZone[player.Identity.IdentityId] = true;
var color = GetFactionColor(zoneblock.OwnerId);
var colorVector = color.ToVector4();
MyVisualScriptLogicProvider.SendChatMessageColored("You have entered the zone.", colorVector, zoneblock.CubeGrid.CustomName);
//MyVisualScriptLogicProvider.SendChatMessageColored("You have entered the zone.", colorVector, zoneblock.CubeGrid.CustomName);
}
}
}
Expand All @@ -112,7 +112,7 @@ public override void UpdateBeforeSimulation()
if (playerInZone.ContainsKey(player.Identity.IdentityId) && playerInZone[player.Identity.IdentityId])
{
playerInZone[player.Identity.IdentityId] = false;
MyAPIGateway.Utilities.ShowNotification("You have left the zone.", 2000, MyFontEnum.Red);
//MyAPIGateway.Utilities.ShowNotification("You have left the zone.", 2000, MyFontEnum.Red);
}
}
});
Expand All @@ -122,6 +122,7 @@ protected override void UnloadData()
{
// No direct way to unregister damage handlers in current SE API
// Ensure no references to prevent memory leaks or unintended behavior
// uhh yeah sure buddy
MyAPIGateway.Session.DamageSystem.RegisterBeforeDamageHandler(9, null);
players?.Clear();
dirties?.Clear();
Expand Down

0 comments on commit 15f344b

Please sign in to comment.