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;
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);