private void TurretBase_CustomNameChanged(IMyTerminalBlock obj) { if (!controlEnabled) { return; } string instructions = myCubeBlock.getInstructions(); if (instructions == previousInstructions) { return; } previousInstructions = instructions; //myLogger.debugLog("name changed to " + myCubeBlock.DisplayNameText + ", instructions = " + instructions, "TurretBase_CustomNameChanged()", Logger.severity.DEBUG); if (string.IsNullOrWhiteSpace(instructions)) { requestedBlocks = null; CurrentState = State.OFF; return; } requestedBlocks = instructions.Split(','); myLogger.debugLog("requestedBlocks = " + instructions, "TurretBase_CustomNameChanged()"); reset(); }