OSDN Git Service

Snapshots crash fix
[automap/automap.git] / Automap / Designators / DefaultDesignators.cs
index 33b499a..652b5c1 100644 (file)
@@ -239,9 +239,9 @@ namespace Automap
 
                internal static void DecodeTranslocator(ICoreClientAPI clientAPI, PointsOfInterest poi, BlockPos posn, Block block)
                {
-#if DEBUG
+               #if DEBUG
                clientAPI.Logger.VerboseDebug("TRANSLOCATOR Designator Invoked!");
-#endif
+               #endif
                //Where to? and from!
 
                BlockEntityStaticTranslocator te = clientAPI.World.BlockAccessor.GetBlockEntity(posn) as BlockEntityStaticTranslocator;
@@ -249,9 +249,9 @@ 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(te.Activated ? "Online, " : "Offline, ");//Property hardcoded TRUE ?!
                textTarget.Append(" Target: [ ");
                textTarget.Append(te.TargetLocation != null ? "Set ]" : "Invalid ]");//Or ABS coords?           
                textTarget.AppendFormat(", Range ({0} ~ {1})", te.MinTeleporterRangeInBlocks, te.MaxTeleporterRangeInBlocks);