OSDN Git Service

1st attempt to fix Protocol buffer corruption issue
[automap/automap.git] / Automap / Designators / DefaultDesignators.cs
index d4ac56a..aa13d4e 100644 (file)
@@ -167,14 +167,14 @@ namespace Automap
 
                        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
                                                        {
@@ -183,10 +183,9 @@ namespace Automap
                                                                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
                                                        }
                                                        );
-
                        }
                }