Thieving beacons automatically set coordinates when unfolded. (#42520)

Thieving beacons set coordinates when unfolded
This commit is contained in:
DDDragoni 2026-01-19 01:02:22 -08:00 committed by Coryler
parent 118aab2bb3
commit 6decbb943b
1 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,15 @@ public sealed class ThiefBeaconSystem : EntitySystem
{
if (args.IsFolded)
ClearCoordinate(beacon, args.User);
if (!args.IsFolded) // Set the beacon's coordinates automatically when its unfolded
{
if (args.User == null)
return;
var mind = _mind.GetMind(args.User.Value);
if (mind != null)
SetCoordinate(beacon, mind.Value, args.User);
}
}
private void OnExamined(Entity<ThiefBeaconComponent> beacon, ref ExaminedEvent args)