if (te != null)
{
-
+ //FIXME: Delayed rescan ?
StringBuilder textTarget = new StringBuilder();
//translocatorEntity.GetBlockInfo(clientAPI.World.Player, textTarget);
- textTarget.Append(te.FullyRepaired ? "Functional " : "Broken ");
- textTarget.Append(te.Activated ? "Online " : "Offline ");
- textTarget.Append(" Target: ");
- textTarget.Append(te.TargetLocation != null ? "Set" : "Invalid");//Or ABS coords?
- textTarget.AppendFormat(" Range ({0} ~ {1})", te.MinTeleporterRangeInBlocks, te.MaxTeleporterRangeInBlocks);
+ textTarget.Append(te.FullyRepaired ? "Functional, " : "Broken, ");
+ textTarget.Append(te.Activated ? "Online, " : "Offline, ");
+ textTarget.Append(" Target: [ ");
+ textTarget.Append(te.TargetLocation != null ? "Set ]" : "Invalid ]");//Or ABS coords?
+ textTarget.AppendFormat(", Range ({0} ~ {1})", te.MinTeleporterRangeInBlocks, te.MaxTeleporterRangeInBlocks);
poi.AddReplace(
new PointOfInterest
{
Location = posn.Copy(),
Notes = textTarget.ToString(),
Timestamp = DateTime.UtcNow,
- Destination = te.TargetLocation != null ? new BlockPosJson(te.TargetLocation) : null//FIXME: Delayed rescan
+ Destination = te.TargetLocation != null ? new BlockPosJson(te.TargetLocation.Copy()) : null
}
);
-
}
}